2 Bug #49936 (crash with ftp stream in php_stream_context_get_option())
\r
5 if( substr(PHP_OS, 0, 3) != "WIN" )
\r
6 die("skip. Do run on Windows only");
\r
9 default_socket_timeout=2
\r
13 $dir = 'ftp://your:self@localhost/';
\r
15 var_dump(opendir($dir));
\r
16 var_dump(opendir($dir));
\r
20 Warning: opendir(): connect() failed: %s
\r
23 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
\r
26 Warning: opendir(): connect() failed: %s
\r
29 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
\r