#49356 [Asn->Fbk]: Memory leak in date_create()
| From: | derick@php.net | Date: | Tue, 25 Aug 2009 12:44:10 +0000 |
| Subject: | #49356 [Asn->Fbk]: Memory leak in date_create() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141487@lists.php.net to get a copy of this message | ||
ID: 49356
Updated by: derick@php.net
Reported By: lundstrom dot jerry at gmail dot com
-Status: Assigned
+Status: Feedback
Bug Type: Date/time related
Operating System: Ubuntu Jaunty
PHP Version: 5.3.0
Assigned To: derick
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
I can can reproduce this in 5.3.0, but not with 5.3.1-dev.
Previous Comments:
------------------------------------------------------------------------
[2009-08-25 12:31:30] lundstrom dot jerry at gmail dot com
Description:
------------
Looping date_create() leaks memory even if you unset the object and has
set a date.timezone.
Reproduce code:
---------------
<?
ini_set('date.timezone', 'Europe/Stockholm');
while(1)
{
$date = date_create('2008-01-01');
unset($date);
}
?>
Expected result:
----------------
No increase in memory usage.
Actual result:
--------------
Grows around 100-150meg per sec.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49356&edit=1