go to bug id or search bugs for
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!
// Create an empty file
echo memory_get_usage() . "\n";
No increase in memory usage.
Memory usage increases constantly, until PHP exits because the memory
limit is exceeded.
Add a Patch
Add a Pull Request
Happens to me with PHP 6.0.0-dev (snapshot php6.0-200901200730.tar.bz2)
Sorry, I don't want to get on your nerves - just for the record, this
still happens to me with PHP 5.3.0beta1.
The bug report is still marked as Assigned so obviously its not fixed...
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
Thank you for the report, and for helping us make PHP better.
Why this was closed? It seems this bug is still there, at least in this version:
PHP 5.3.6-13ubuntu3.9 with Suhosin-Patch (cli) (built: Sep 12 2012 19:00:27)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
@ptr dot wang at gmail dot com
Please try the latest release.