ID: 40172 Comment by: dominique dot fournier at grenoble dot cnrs dot fr Reported By: diogo86 at gmail dot com Status: No Feedback Bug Type: Performance problem Operating System: Debian PHP Version: 5.2.0 Assigned To: derick New Comment:
Debian Box Etch with PHP 5.2 continues with this problem (with an empty or complete php.ini file). With ini_set ("date.timezone", "America/Toronto"); in php code, the problem is solved. Debian version : php5-common 5.2.0-8+etch13 Previous Comments: ------------------------------------------------------------------------ [2008-04-02 22:14:35] jon at fantasybookinc dot com Running php 5.2 on a debian box, experiencing same issue with date() memory leakage. ------------------------------------------------------------------------ [2007-12-16 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-12-08 11:49:52] der...@php.net I still can't reproduce this, not even with an empty php.ini file, on any PHP version between 5.2.1 and 5.3.0-dev. ------------------------------------------------------------------------ [2007-10-09 16:43:31] der...@php.net I'll investigate - it might just be caching though. ------------------------------------------------------------------------ [2007-09-25 18:34:45] travis at pause dot ca I'm experiencing the same issue: date() increases memory usage (for us) by about 17-20kb each time it's called. We're running Redhat Enterprise on our server with PHP 5.2.4. We've also experienced the problem on Windows XP with PHP 5.2.3. Interestingly gmdate() is not affected by the issue, leading me to think it was a problem related somehow to the timezone file. After a little investigation in that direction we found a fix. Simply specify date.timezone in your php.ini file and no more memory leak for date(). eg: date.timezone = America/Toronto So this bug can be replicated, it does exist (at least in the versions mentioned above), but there is a workaround until the leak is fixed (if it hasn't been in CVS already). Cheers! ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/40172 -- Edit this bug report at http://bugs.php.net/?id=40172&edit=1