]> granicus.if.org Git - php/commitdiff
- Correcting test.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 10 Feb 2004 09:15:01 +0000 (09:15 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 10 Feb 2004 09:15:01 +0000 (09:15 +0000)
# still segfaults though.

Zend/tests/bug22836.phpt

index 14c9e9f3eda73f009c8c989a55c10bb2890502eb..1edcaa5c17a3c3357d5868eab10127d26d1708af 100644 (file)
@@ -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
+
+