#46910 [Csd]: strtotime() leaks memory
| From: | derick@php.net | Date: | Fri, 19 Dec 2008 22:45:41 +0000 |
| Subject: | #46910 [Csd]: strtotime() leaks memory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132185@lists.php.net to get a copy of this message | ||
ID: 46910
Updated by: derick@php.net
Reported By: vnegrier at optilian dot com
Status: Closed
Bug Type: Date/time related
Operating System: Linux 2.6
PHP Version: 5.2.8
New Comment:
This has already been fixed in CVS (yesterday) -- please try a
snapshot.
Previous Comments:
------------------------------------------------------------------------
[2008-12-19 22:45:20] derick@php.net
This has already been fixed in CVS (yesterday) -- please try a
snapshot.
------------------------------------------------------------------------
[2008-12-19 22:39:43] vnegrier at optilian dot com
Description:
------------
Each call to strtotime() leaks about 1 kilobyte of memory.
This happens with 5.2.8 and 5.3.0a3, 5.2.6 does not have this problem.
Reproduce code:
---------------
<?
$test = "19 Dec 2008 23:30:12";
for ($i = 0; $i < 1000000; $i++) strtotime($test);
?>
Actual result:
--------------
with 5.2.8 php uses more than 1 gb of memory at the end of script
execution.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46910&edit=1