Edit report at http://bugs.php.net/bug.php?id=53502&edit=1
ID: 53502
User updated by: jsheridan at tenable dot com
Reported by: jsheridan at tenable dot com
Summary: strtotime with timezone memory leak
Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Redhat ES5
PHP Version: 5.3.3
Block user comment: N
Private report: N
New Comment:
This was found on a 5.3.2 system but verified against a fresh built
5.3.3 with no
additions.
Previous Comments:
------------------------------------------------------------------------
[2010-12-08 21:04:11] jsheridan at tenable dot com
Description:
------------
strtotime calls with a timezone embedded function correctly but
continually use up
memory. In a daemon program this becomes quickly fatal.
Test script:
---------------
<?php
while (true) {
strtotime('Monday 00:00 Europe/Paris'); // Memory leak
}
?>
<?php
while (true) {
date_default_timezone_set("Europe/Paris");
strtotime('Monday 00:00'); // No memory leak
}
?>
Expected result:
----------------
Memory usage should remain stable.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53502&edit=1