bug77765.phpt 447 B

1234567891011121314151617181920
  1. --TEST--
  2. stat() on directory should return 40755 for ftp://
  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. require __DIR__ . "/../../../ftp/tests/server.inc";
  11. $path = "ftp://localhost:" . $port."/www";
  12. var_dump(stat($path)['mode']);
  13. ?>
  14. --EXPECT--
  15. string(11) "SIZE /www
  16. "
  17. int(16877)