|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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: Wed Jul 06 17:05:44 2022 UTC