dis-bench / src /php /php-src /ext /ftp /tests /ftp_pasv.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
343 Bytes
--TEST--
Testing ftp_pasv basic functionality
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';
$ftp = ftp_connect('127.0.0.1', $port);
ftp_login($ftp, 'user', 'pass');
$ftp or die("Couldn't connect to the server");
var_dump(ftp_pasv($ftp, false));
?>
--EXPECT--
bool(true)