#47351 [NEW]: Memory leak in DateTime
From: tobias dot john at fondsnet dot de
Operating system: Mac OS X 10.5
PHP version: 5.3.0beta1
PHP Bug Type: Date/time related
Bug description: Memory leak in DateTime
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 bug report at http://bugs.php.net/?id=47351&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47351&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47351&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47351&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47351&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47351&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47351&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47351&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47351&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47351&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47351&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47351&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47351&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47351&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47351&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47351&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47351&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47351&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47351&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47351&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47351&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47351&r=mysqlcfg
Thread (11 messages)
- tobias dot john at fondsnet dot de
- derick@php.net#47351 [Opn->Asn]: Memory leak in DateTime
- paul dot assen at xs4all dot nl#47351 [Com]: Memory leak in DateTime
- bloudon at townnews dot com#47351 [Com]: Memory leak in DateTime
- bloudon at townnews dot com#47351 [Com]: Memory leak in DateTime
- tobias dot john at fondsnet dot de#47351 [Com]: Memory leak in DateTime
- tobias dot john at fondsnet dot de#47351 [Com]: [PATCH] Memory leak in DateTime
- tobias dot john at fondsnet dot de#47351 [Com]: [PATCH] Memory leak in DateTime
- tobias dot john at fondsnet dot de#47351 [Com]: [PATCH] Memory leak in DateTime
- bloudon at townnews dot com#47351 [Com]: [PATCH] Memory leak in DateTime
- derick@php.net#47351 [Asn->Csd]: [PATCH] Memory leak in DateTime