bug7216-2.phpt 410 B

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