From: Hannes Magnusson Date: Sun, 4 Dec 2011 12:34:19 +0000 (+0000) Subject: Fix test.. the errormessage is irrelevant, we are testing if we segfault and corrupt... X-Git-Tag: php-5.5.0alpha1~777 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c884d3782c1e9bc9f4210bea8a28258bfab3ca2e;p=php Fix test.. the errormessage is irrelevant, we are testing if we segfault and corrupt return value --- diff --git a/ext/standard/tests/streams/bug49936.phpt b/ext/standard/tests/streams/bug49936.phpt index e7cde2bd8e..d98db1d799 100644 --- a/ext/standard/tests/streams/bug49936.phpt +++ b/ext/standard/tests/streams/bug49936.phpt @@ -10,13 +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===