From 1e6a82a1cf080ad9c0ff56e1cf488d9274b599a4 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Sun, 4 Dec 2011 12:34:19 +0000 Subject: [PATCH] Fix test.. the errormessage is irrelevant, we are testing if we segfault and corrupt return value --- ext/standard/tests/streams/bug49936.phpt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ext/standard/tests/streams/bug49936.phpt b/ext/standard/tests/streams/bug49936.phpt index dcfa6364a2..d98db1d799 100644 --- a/ext/standard/tests/streams/bug49936.phpt +++ b/ext/standard/tests/streams/bug49936.phpt @@ -10,14 +10,12 @@ if( substr(PHP_OS, 0, 3) == "WIN" ) $dir = 'ftp://your:self@localhost/'; -var_dump(opendir($dir)); -var_dump(opendir($dir)); +var_dump(@opendir($dir)); +var_dump(@opendir($dir)); ?> +===DONE=== --EXPECTF-- -Warning: opendir(ftp://...@localhost/): failed to open dir: not implemented in %s on line %d bool(false) - -Warning: opendir(ftp://...@localhost/): failed to open dir: not implemented in %s on line %d bool(false) - +===DONE=== -- 2.40.0