|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-20 11:11 UTC] tim at digicol dot de
[2009-01-30 14:51 UTC] tim at digicol dot de
[2009-01-30 15:30 UTC] scottmac@php.net
[2009-03-25 15:25 UTC] dmitry@php.net
[2013-05-16 09:18 UTC] ptr dot wang at gmail dot com
[2013-05-16 09:36 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
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.