From e88babe8aca616c23389958e8041a28ca9eec227 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Tue, 10 Feb 2004 09:15:01 +0000 Subject: [PATCH] - Correcting test. # still segfaults though. --- Zend/tests/bug22836.phpt | 58 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 4 deletions(-) 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 + + -- 2.40.0