|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52863 PHP Crash - RAM consuming
Submitted: 2010-09-16 18:16 UTC Modified: 2013-02-18 00:34 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: g dot delaportas at gmail dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: Irrelevant OS: Windows 7
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.
Block user comment
Status: Assign to:
Bug Type:
From: g dot delaportas at gmail dot com
New email:
PHP Version: OS:


 [2010-09-16 18:16 UTC] g dot delaportas at gmail dot com
I use only native PHP code with no extra plugins loaded.
The PHP 5.3.1 crashes and consumes all the RAM when I use the script below.
This also happens to all the versions after 5.3.1.

Test script:
    class Test_Crash
        private $virtual_func;   
        public function __construct()
            $this->virtual_func = new Test_Crash;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-16 18:53 UTC]
Did actually crash? Can you provide a backtrace? It's normal it consumes all the RAM (if you have no memory limit), since you are allocating memory recursively and indefinitely.
 [2010-09-16 18:54 UTC]
-Status: Open +Status: Feedback
 [2010-09-16 23:44 UTC]
please find instructions on how to use gdb backtrace function to report the stacktrace
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon May 23 07:03:48 2022 UTC