From:
Operating system: Windows
PHP version: 5.2.15
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Infinite method recursion causes crash
Description:
------------
The following script causes PHP to crash.
I initially noticed it on my hosting, but since it uses nginx as a frontend
server
I can't confirm that bug appears on linux as well, as all I see is a 500
error.
Test script:
---------------
<?php
class Foo
{
public function test()
{
return $this->test();
}
}
$foo = new Foo;
$foo->test();
Expected result:
----------------
Either out of memory or max execution time exceeded error
Actual result:
--------------
Crash
--
Edit bug report at http://bugs.php.net/bug.php?id=53545&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53545&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53545&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=53545&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53545&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=53545&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53545&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=53545&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=53545&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=53545&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=53545&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=53545&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=53545&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=53545&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53545&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53545&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53545&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=53545&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=53545&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=53545&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=53545&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=53545&r=mysqlcfg