moriyoshi               Wed Jul  2 11:47:24 2003 EDT

  Modified files:              
    /php-src/tests/lang bug22510.phpt 
  Log:
  Now this should make sense.
  
  
Index: php-src/tests/lang/bug22510.phpt
diff -u php-src/tests/lang/bug22510.phpt:1.2 php-src/tests/lang/bug22510.phpt:1.3
--- php-src/tests/lang/bug22510.phpt:1.2        Wed Jul  2 11:38:51 2003
+++ php-src/tests/lang/bug22510.phpt    Wed Jul  2 11:47:24 2003
@@ -13,7 +13,7 @@
 
        function &method1() {
                print __CLASS__."::".__FUNCTION__."\n";
-               return $this->foo;
+               return @$this->foo;
        }
 
        function &method2() {
@@ -23,7 +23,7 @@
 
        function method3() {
                print __CLASS__."::".__FUNCTION__."\n";
-               return $this->foo;
+               return @$this->foo;
        }
 }
 
@@ -88,28 +88,9 @@
 $bar->instance->finalize();
 print "I'm alive!\n";
 ?>
---EXPECT--
+--EXPECTF--
 ok1
 bar::run1
 foo::method1
-foo::method1
-foo::finalize
-done!
-ok2
-bar::run2
-foo::method2
-foo::method2
-foo::finalize
-done!
-ok3
-bar::run3
-foo::method3
-foo::method3
-foo::finalize
-done!
-ouch
-bar::run1
-foo::method1
-foo::method1
-foo::finalize
-I'm alive!
+
+Fatal error: Only variables or references can be returned by reference in %s on line 
%d



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to