Skip to content

Commit c884d37

Browse files
committed
Fix test.. the errormessage is irrelevant, we are testing if we segfault and corrupt return value
1 parent d84e1b5 commit c884d37

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ext/standard/tests/streams/bug49936.phpt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ if( substr(PHP_OS, 0, 3) == "WIN" )
1010

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

13-
var_dump(opendir($dir));
14-
var_dump(opendir($dir));
13+
var_dump(@opendir($dir));
14+
var_dump(@opendir($dir));
1515

1616
?>
17+
===DONE===
1718
--EXPECTF--
18-
Warning: opendir(ftp://...@localhost/): failed to open dir: not implemented in %s on line %d
1919
bool(false)
20-
21-
Warning: opendir(ftp://...@localhost/): failed to open dir: not implemented in %s on line %d
2220
bool(false)
21+
===DONE===

0 commit comments

Comments
 (0)