From: Moriyoshi Koizumi Date: Tue, 10 Feb 2004 09:15:01 +0000 (+0000) Subject: - Correcting test. X-Git-Tag: php-5.0.0b4RC1~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e88babe8aca616c23389958e8041a28ca9eec227;p=php - Correcting test. # still segfaults though. --- diff --git a/Zend/tests/bug22836.phpt b/Zend/tests/bug22836.phpt index 14c9e9f3ed..1edcaa5c17 100644 --- a/Zend/tests/bug22836.phpt +++ b/Zend/tests/bug22836.phpt @@ -7,9 +7,9 @@ Bug #22836 (returning references to NULL) function &f() { $x = "foo"; - var_dump($x); - print "'$x'\n"; - return ($a); + var_dump($x); + print "'$x'\n"; + return ($a); } for ($i = 0; $i < 8; $i++) { $h =& f(); @@ -21,4 +21,54 @@ string(3) "foo" Notice: Undefined variable: a in %s on line %d -Fatal error: Only variables or references can be returned by reference in %s on line %d +Strict Standards: Only variable references should be returned by reference in %s on line %d +string(3) "foo" +'foo' + +Notice: Undefined variable: a in %s on line %d + +Strict Standards: Only variable references should be returned by reference in %s on line %d +string(3) "foo" +'foo' + +Notice: Undefined variable: a in %s on line %d + +Strict Standards: Only variable references should be returned by reference in %s on line %d +string(3) "foo" +'foo' + +Notice: Undefined variable: a in %s on line %d + +Strict Standards: Only variable references should be returned by reference in %s on line %d +string(3) "foo" +'foo' + +Notice: Undefined variable: a in %s on line %d + +Strict Standards: Only variable references should be returned by reference in %s on line %d +string(3) "foo" +'foo' + +Notice: Undefined variable: a in %s on line %d + +Strict Standards: Only variable references should be returned by reference in %s on line %d +string(3) "foo" +'foo' + +Notice: Undefined variable: a in %s on line %d + +Strict Standards: Only variable references should be returned by reference in %s on line %d +string(3) "foo" +'foo' + +Notice: Undefined variable: a in %s on line %d + +Strict Standards: Only variable references should be returned by reference in %s on line %d +string(3) "foo" +'foo' + +Notice: Undefined variable: a in %s on line %d + +Strict Standards: Only variable references should be returned by reference in %s on line %d + +