xref: /PHP-7.2/ext/ftp/tests/ftp_alloc_basic2.phpt (revision f1d7e3ca)
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--SKIPIF--
7<?php
8require 'skipif.inc';
9?>
10--FILE--
11<?php
12require 'server.inc';
13
14$ftp = ftp_connect('127.0.0.1', $port);
15if (!$ftp) die("Couldn't connect to the server");
16ftp_login($ftp, 'user', 'pass');
17
18var_dump(ftp_alloc($ftp, 1024, $result));
19var_dump($result);
20?>
21--EXPECT--
22bool(true)
23string(20) "1024 bytes allocated"
24