php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53545 Infinite method recursion causes crash
Submitted: 2010-12-14 20:58 UTC Modified: 2010-12-14 22:35 UTC
From: kpobococ at gmail dot com Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: 5.2.15 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kpobococ at gmail dot com
New email:
PHP Version: OS:

 

 [2010-12-14 20:58 UTC] kpobococ at gmail dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-14 22:35 UTC] felipe@php.net
-Status: Open +Status: Wont fix
 [2010-12-14 22:35 UTC] felipe@php.net
This issue was fixed on 5.3 for a while, but it wont be on 5.2 branch.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 05:01:38 2025 UTC