cvs: ZendEngine2 /tests bug22836.phpt
| From: | Moriyoshi Koizumi | Date: | Tue, 10 Feb 2004 09:15:06 +0000 |
| Subject: | cvs: ZendEngine2 /tests bug22836.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2334@lists.php.net to get a copy of this message | ||
moriyoshi Tue Feb 10 04:15:06 2004 EDT
Modified files:
/ZendEngine2/tests bug22836.phpt
Log:
- Correcting test.
# still segfaults though.
http://cvs.php.net/diff.php/ZendEngine2/tests/bug22836.phpt?r1=1.1&r2=1.2&ty=u
Index: ZendEngine2/tests/bug22836.phpt
diff -u ZendEngine2/tests/bug22836.phpt:1.1 ZendEngine2/tests/bug22836.phpt:1.2
--- ZendEngine2/tests/bug22836.phpt:1.1 Tue Jul 29 13:56:50 2003
+++ ZendEngine2/tests/bug22836.phpt Tue Feb 10 04:15:01 2004
@@ -7,9 +7,9 @@
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 @@
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
+
+