|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
38 + 30 = ?
Subscribe to this entry?

 [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: Sun Jul 03 18:03:33 2022 UTC