summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-12-14 18:25:13 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-12-14 18:25:13 +0000
commit097ed939a67ab24318f4fc9874ed102134537578 (patch)
tree93cf65dd3f911e1a0c3ac3fcb28c04bd79fc4544
parent1128955aa4707d26dc9f8920093a0f67d7ea8957 (diff)
downloadphp-git-097ed939a67ab24318f4fc9874ed102134537578.tar.gz
Fixed test.
-rw-r--r--tests/lang/bug22367.phpt54
1 files changed, 53 insertions, 1 deletions
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)
+}