#44195 [Opn->Bgs]: Calling object method from itself results in Internal Server Error

From: Date: Wed, 20 Feb 2008 23:30:24 +0000
Subject: #44195 [Opn->Bgs]: Calling object method from itself results in Internal Server Error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122530@lists.php.net to get a copy of this message
ID: 44195 Updated by: felipe@php.net Reported By: Denis dot D dot Gorbachev at gmail dot com -Status: Open +Status: Bogus Bug Type: Class/Object related Operating System: WinXP Pro PHP Version: 5.2.5 New Comment: See#37612 Previous Comments: ------------------------------------------------------------------------ [2008-02-20 23:06:19] Denis dot D dot Gorbachev at gmail dot com Description: ------------ While editing source, I findreplaced by mistake a tiny piece of my code in one of my files. I have then modified other files. When I tried to run my code, it crashed with Internal Server Error. Reproduce code: --------------- EXAMPLE CODE: <?php class foo { public function bar() { return $this->bar(); } } $f = new foo(); $f->bar(); ?> Expected result: ---------------- Internal Server Error Actual result: -------------- PHP Fatal Error or PHP Warning ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44195&edit=1

« previous php.bugs (#122530) next »