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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC