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