Bug #52863 [Com]: PHP Crash - RAM consuming
| From: | cataphract@php.net | Date: | Thu, 16 Sep 2010 16:53:50 +0000 |
| Subject: | Bug #52863 [Com]: PHP Crash - RAM consuming | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-154433@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52863&edit=1
ID: 52863
Comment by: cataphract@php.net
Reported by: g dot delaportas at gmail dot com
Summary: PHP Crash - RAM consuming
Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Windows 7
PHP Version: Irrelevant
Block user comment: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2010-09-16 18:16:47] g dot delaportas at gmail dot com
Description:
------------
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;
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52863&edit=1