bug77680.phpt 644 B

12345678910111213141516171819202122232425262728293031323334
  1. --TEST--
  2. Recursive mkdir() on ftp should create missing directories.
  3. --SKIPIF--
  4. <?php
  5. if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
  6. if (!function_exists('pcntl_fork')) die("skip pcntl_fork() not available.");
  7. ?>
  8. --FILE--
  9. <?php
  10. $bug77680=1;
  11. require __DIR__ . "/../../../ftp/tests/server.inc";
  12. $path = "ftp://localhost:" . $port."/one/two/three/";
  13. mkdir($path, 0755, true);
  14. ?>
  15. --EXPECT--
  16. string(20) "CWD /one/two/three
  17. "
  18. string(14) "CWD /one/two
  19. "
  20. string(10) "CWD /one
  21. "
  22. string(7) "CWD /
  23. "
  24. string(7) "MKD /
  25. "
  26. string(10) "MKD /one
  27. "
  28. string(14) "MKD /one/two
  29. "
  30. string(20) "MKD /one/two/three
  31. "