#44195 [NEW]: Calling object method from itself results in Internal Server Error

From: Date: Wed, 20 Feb 2008 23:06:19 +0000
Subject: #44195 [NEW]: Calling object method from itself results in Internal Server Error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122528@lists.php.net to get a copy of this message
From: Denis dot D dot Gorbachev at gmail dot com Operating system: WinXP Pro PHP version: 5.2.5 PHP Bug Type: Class/Object related Bug description: Calling object method from itself results in Internal Server Error 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 bug report at http://bugs.php.net/?id=44195&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44195&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44195&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44195&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44195&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44195&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44195&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44195&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44195&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44195&r=support Expected behavior: http://bugs.php.net/fix.php?id=44195&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44195&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44195&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44195&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44195&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44195&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44195&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44195&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44195&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44195&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44195&r=mysqlcfg

« previous php.bugs (#122528) next »