Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / standard / tests / streams / bug49936_win32.phpt
blob4db4a5044f4e271db4ef1444880f9ea0b417fc02
1 --TEST--\r
2 Bug #49936 (crash with ftp stream in php_stream_context_get_option())\r
3 --SKIPIF--\r
4 <?php\r
5 if( substr(PHP_OS, 0, 3) != "WIN" )\r
6   die("skip. Do run on Windows only");\r
7 ?>\r
8 --INI--\r
9 default_socket_timeout=2\r
10 --FILE--\r
11 <?php\r
13 $dir = 'ftp://your:self@localhost/';\r
15 var_dump(opendir($dir));\r
16 var_dump(opendir($dir));\r
18 ?>\r
19 --EXPECTF--\r
20 Warning: opendir(): connect() failed: %s\r
21  in %s on line %d\r
23 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d\r
24 bool(false)\r
26 Warning: opendir(): connect() failed: %s\r
27  in %s on line %d\r
29 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d\r
30 bool(false)\r