ID: 46910 Updated by: der...@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] der...@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