mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
20 lines
380 B
PHP
20 lines
380 B
PHP
--TEST--
|
|
Testing ftp_alloc returns true
|
|
--CREDITS--
|
|
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
|
|
#testfest PHPSP on 2009-06-20
|
|
--EXTENSIONS--
|
|
ftp
|
|
pcntl
|
|
--FILE--
|
|
<?php
|
|
require 'server.inc';
|
|
|
|
$ftp = ftp_connect('127.0.0.1', $port);
|
|
if (!$ftp) die("Couldn't connect to the server");
|
|
ftp_login($ftp, 'user', 'pass');
|
|
|
|
var_dump(ftp_alloc($ftp, 1024));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|