ID: 47038 Updated by: dmi...@php.net Reported By: tim at digicol dot de -Status: Assigned +Status: Closed Bug Type: Scripting Engine problem Operating System: * PHP Version: 5.3CVS, 6CVS (2009-01-20) Assigned To: scottmac New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2009-01-30 15:30:25] scott...@php.net The bug report is still marked as Assigned so obviously its not fixed... ------------------------------------------------------------------------ [2009-01-30 14:51:34] tim at digicol dot de Sorry, I don't want to get on your nerves - just for the record, this still happens to me with PHP 5.3.0beta1. ------------------------------------------------------------------------ [2009-01-20 11:11:51] tim at digicol dot de Happens to me with PHP 6.0.0-dev (snapshot php6.0-200901200730.tar.bz2) as well. ------------------------------------------------------------------------ [2009-01-08 15:57:50] tim at digicol dot de Description: ------------ With today's PHP 5.3 snapshot, include() on my Linux box leaks memory; I've noticed this because we're using long-running scripts with the PHP CLI (where Smarty's fetch/display methods call include()...). This doesn't happen with PHP 5.2.6. I tested with an unchanged copy of php.ini-recommended and just './configure' without any options, on Debian Linux 4.0, running in VMware Fusion on my Intel Mac. Thanks for looking into this, and for the great work on PHP! Reproduce code: --------------- <?php // Create an empty file touch('empty.txt'); while (true) { include('empty.txt'); echo memory_get_usage() . "\n"; } ?> Expected result: ---------------- No increase in memory usage. Actual result: -------------- Memory usage increases constantly, until PHP exits because the memory limit is exceeded. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47038&edit=1