Bug #67725 [Opn]: PHPNG: memory leak when including files

From: Date: Thu, 31 Jul 2014 14:03:48 +0000
Subject: Bug #67725 [Opn]: PHPNG: memory leak when including files
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186910@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67725&edit=1 ID: 67725 Updated by: nikic@php.net Reported by: pascal dot chevrel at free dot fr Summary: PHPNG: memory leak when including files Status: Open Type: Bug Package: *General Issues PHP Version: Irrelevant -Assigned To: +Assigned To: dmitry Block user comment: N Private report: N New Comment: Looks like an issue with immutable arrays, which won't get destroyed until end of request. Previous Comments: ------------------------------------------------------------------------ [2014-07-31 12:27:40] pascal dot chevrel at free dot fr Description: ------------ The script includes a file in a loop, the file is a big (tens of thousands of lines) php array. If you run the script in PHP 5.5 or earlier, the memory consumption at each loop iteration remains stable (about 6MB). If you run it with PHPNG, the memory consumption adds up with every iteration and me hit a memory limit quickly, it seems the memory used by the array in the include ($tmx) is not freed when it is replaced by a new $tmx array. Test script: --------------- I put a repository exposing the bug here: https://github.com/pascalchevrel/PHPNG_memory_bug ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67725&edit=1

« previous php.bugs (#186910) next »