Hi, I found that the memory leak is actually related to APC, even with the latest version of PHP (5.3.25) and latest version of APC (3.1.13), the memory leak is still there, to re-produce the bug, just run this script and watch the memory usage of the php process (please run with: php -d apc.enable_cli=1 )
<?php touch('file1.php'); while (true) { $file = 'file1.php'; require($file); } if run with -dapc.enable_cli=0, it does not leak memory. thanks. On Thu, May 16, 2013 at 11:40 AM, Stas Malyshev <smalys...@sugarcrm.com>wrote: > Hi! > > > hi, did anyone come across the memory leak of require()/include(), > > I just saw this bug report: https://bugs.php.net/bug.php?id=47038, > > but it was closed with nothing explained. > > This bug report was closed because the bug it describes was fixed. It is > explained so right on the bug page. > > > the php version I used: > > > > php --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 > > If you see the memory leak with current version (5.4.15/5.3.25) please > submit a bug report containing the reproduction script and what happens > when you run it. See the guidelines here: > https://bugs.php.net/how-to-report.php > > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 >