From: Ilia Alshanetsky Date: Sun, 14 Dec 2003 18:25:13 +0000 (+0000) Subject: Fixed test. X-Git-Tag: php-5.0.0b3RC1~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=097ed939a67ab24318f4fc9874ed102134537578;p=php Fixed test. --- diff --git a/tests/lang/bug22367.phpt b/tests/lang/bug22367.phpt index 5b142b4b00..d97ad7cef3 100644 --- a/tests/lang/bug22367.phpt +++ b/tests/lang/bug22367.phpt @@ -67,4 +67,56 @@ bool(false) Notice: Undefined offset: %d 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 +bool(false) +array(5) { + [0]=> + int(0) + [1]=> + int(1) + [2]=> + int(2) + [3]=> + int(3) + [4]=> + int(4) +} +array(5) { + [0]=> + int(0) + [1]=> + int(1) + [2]=> + int(2) + [3]=> + int(3) + [4]=> + int(4) +} +int(2) +bool(true) +bool(true) +array(5) { + [0]=> + int(0) + [1]=> + int(1) + [2]=> + int(2) + [3]=> + int(3) + [4]=> + int(4) +} +array(5) { + [0]=> + int(0) + [1]=> + int(1) + [2]=> + int(2) + [3]=> + int(3) + [4]=> + int(4) +}