bug49936_win32.phpt 670 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. Bug #49936 (crash with ftp stream in php_stream_context_get_option())
  3. --SKIPIF--
  4. <?php
  5. if( substr(PHP_OS, 0, 3) != "WIN" )
  6. die("skip. Do run on Windows only");
  7. ?>
  8. --INI--
  9. default_socket_timeout=2
  10. --FILE--
  11. <?php
  12. $dir = 'ftp://your:self@localhost/';
  13. var_dump(opendir($dir));
  14. var_dump(opendir($dir));
  15. ?>
  16. --EXPECTF--
  17. Warning: opendir(): connect() failed: %s in %s on line %d
  18. Warning: opendir(ftp://...@localhost/): Failed to open directory: operation failed in %s on line %d
  19. bool(false)
  20. Warning: opendir(): connect() failed: %s in %s on line %d
  21. Warning: opendir(ftp://...@localhost/): Failed to open directory: operation failed in %s on line %d
  22. bool(false)