ID: 47351
Comment by: paul dot assen at xs4all dot nl
Reported By: tobias dot john at fondsnet dot de
Status: Assigned
Bug Type: Date/time related
Operating System: Mac OS X 10.5
PHP Version: 5.3.0beta1
Assigned To: derick
New Comment:
I found this bug also to be present in PHP 5.2.8 under Windows XP
Previous Comments:
------------------------------------------------------------------------
[2009-02-10 09:14:49] tobias dot john at fondsnet dot de
Description:
------------
Memory allocated by a DateTime object is not released correctly.
Inifite loops of allocating DateTime objects let the memory consumption
even raise above the php memory limit.
Reproduce code:
---------------
while(1) {
$v = new \DateTime();
}
Expected result:
----------------
Infinite loop.
Actual result:
--------------
php(38699) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Bus error
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47351&edit=1