bjori Sun, 04 Dec 2011 12:34:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=320358
Log:
Fix test.. the errormessage is irrelevant, we are testing if we segfault and
corrupt return value
Changed paths:
U php/php-src/branches/PHP_5_4/ext/standard/tests/streams/bug49936.phpt
U php/php-src/trunk/ext/standard/tests/streams/bug49936.phpt
Modified: php/php-src/branches/PHP_5_4/ext/standard/tests/streams/bug49936.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/standard/tests/streams/bug49936.phpt
2011-12-04 11:20:29 UTC (rev 320357)
+++ php/php-src/branches/PHP_5_4/ext/standard/tests/streams/bug49936.phpt
2011-12-04 12:34:19 UTC (rev 320358)
@@ -10,14 +10,12 @@
$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===
Modified: php/php-src/trunk/ext/standard/tests/streams/bug49936.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/streams/bug49936.phpt 2011-12-04
11:20:29 UTC (rev 320357)
+++ php/php-src/trunk/ext/standard/tests/streams/bug49936.phpt 2011-12-04
12:34:19 UTC (rev 320358)
@@ -10,13 +10,12 @@
$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===
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php