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