summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/bug49936.phpt
blob: d98db1d79900ce19f5642986bf04040ea87ae580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Bug #49936 (crash with ftp stream in php_stream_context_get_option())
--SKIPIF--
<?php
if( substr(PHP_OS, 0, 3) == "WIN" )
  die("skip. Do not run on Windows");
?>
--FILE--
<?php

$dir = 'ftp://your:self@localhost/';

var_dump(@opendir($dir));
var_dump(@opendir($dir));

?>
===DONE===
--EXPECTF--
bool(false)
bool(false)
===DONE===