#49356 [Opn->Csd]: Memory leak in date_create()
| From: | jani@php.net | Date: | Wed, 26 Aug 2009 09:11:16 +0000 |
| Subject: | #49356 [Opn->Csd]: Memory leak in date_create() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141533@lists.php.net to get a copy of this message | ||
ID: 49356
Updated by: jani@php.net
Reported By: lundstrom dot jerry at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Date/time related
Operating System: Ubuntu Jaunty
PHP Version: 5.3.0
Assigned To: derick
New Comment:
When it's ready.
Previous Comments:
------------------------------------------------------------------------
[2009-08-26 09:07:24] lundstrom dot jerry at gmail dot com
I can confirm the fix as of php5.3-200908251230.
When will the next 5.3 version be released?
------------------------------------------------------------------------
[2009-08-25 12:44:10] derick@php.net
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.
------------------------------------------------------------------------
[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