bug7216-2.phpt 393 B

1234567891011121314151617181920
  1. --TEST--
  2. Bug #7216 (ftp_mkdir returns nothing (2))
  3. --EXTENSIONS--
  4. ftp
  5. pcntl
  6. --FILE--
  7. <?php
  8. require 'server.inc';
  9. $ftp = ftp_connect('127.0.0.1', $port);
  10. if (!$ftp) die("Couldn't connect to the server");
  11. var_dump(ftp_login($ftp, 'anonymous', 'IEUser@'));
  12. // test for the correct behavior this time
  13. var_dump(ftp_mkdir($ftp, 'CVS'));
  14. ?>
  15. --EXPECT--
  16. bool(true)
  17. string(20) "/path/to/ftproot/CVS"