#47351 [Opn->Asn]: Memory leak in DateTime

From: Date: Wed, 18 Feb 2009 15:50:41 +0000
Subject: #47351 [Opn->Asn]: Memory leak in DateTime
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-133956@lists.php.net to get a copy of this message
ID: 47351 Updated by: derick@php.net Reported By: tobias dot john at fondsnet dot de -Status: Open +Status: Assigned Bug Type: Date/time related Operating System: Mac OS X 10.5 PHP Version: 5.3.0beta1 -Assigned To: +Assigned To: derick 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

« previous php.bugs (#133956) next »