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 not run on Windows");
7?>
8--FILE--
9<?php
10
11$dir = 'ftp://your:self@localhost/';
12
13var_dump(@opendir($dir));
14var_dump(@opendir($dir));
15
16?>
17===DONE===
18--EXPECTF--
19bool(false)
20bool(false)
21===DONE===
22