ID:               30112
 User updated by:  jw at jwscripts dot com
 Reported By:      jw at jwscripts dot com
 Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Windows XP
-PHP Version:      5.0.1
+PHP Version:      5.0.2
 New Comment:

Bug persists in version 5.0.2, the notice and fatal error are not
displayed (crash is more severe).


Previous Comments:
------------------------------------------------------------------------

[2004-09-16 13:39:45] jw at jwscripts dot com

Description:
------------
When the __toString() method is called from a returned object to return
an undefined property, Apache 2.0.48 crashes.



Reproduce code:
---------------
<?

class Foo {
        public function doSomething() {
                return new Foo;
        }

        public function __toString () {
                return $this->undefined;
        }
}

$foo = new Foo;
print $foo->doSomething();

?>

Expected result:
----------------
Notice:  Undefined property:  Foo::$undefined
Fatal error:  Method Foo::__toString() must return a string value

Actual result:
--------------
Apache Crash:
=============
szAppName : Apache.exe  szAppVer : 2.0.48.0     
szModName : php5ts.dll     
szModVer  : 5.0.1.1     offset   : 0004dd7f

+ the above messages 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30112&edit=1

Reply via email to