xref: /php-src/ext/ftp/tests/ftp_alloc_basic2.phpt (revision e9f783fc)
1--TEST--
2Testing ftp_alloc returns true
3--CREDITS--
4Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
5#testfest PHPSP on 2009-06-20
6--EXTENSIONS--
7ftp
8pcntl
9--FILE--
10<?php
11require 'server.inc';
12
13$ftp = ftp_connect('127.0.0.1', $port);
14if (!$ftp) die("Couldn't connect to the server");
15ftp_login($ftp, 'user', 'pass');
16
17var_dump(ftp_alloc($ftp, 1024, $result));
18var_dump($result);
19?>
20--EXPECT--
21bool(true)
22string(20) "1024 bytes allocated"
23