#37845 [Opn]: Memory Leak on large # of files
| From: | rr at ronrosen dot com | Date: | Mon, 19 Jun 2006 10:51:48 +0000 |
| Subject: | #37845 [Opn]: Memory Leak on large # of files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98473@lists.php.net to get a copy of this message | ||
ID: 37845
User updated by: rr at ronrosen dot com
Reported By: rr at ronrosen dot com
Status: Open
Bug Type: Streams related
Operating System: i386-redhat-linux
PHP Version: 5.1.4
New Comment:
one more thing. If the fwrite is eliminated, the mempry issuse
does not happen.
Previous Comments:
------------------------------------------------------------------------
[2006-06-19 10:43:08] rr at ronrosen dot com
Description:
------------
When a large # of files are opend, written and closed, memory
is never released. I tested it on windows and linux. Samve
Problem. Strange thing, when the files are deleted on the
linux version, the memory is released.
Reproduce code:
---------------
for($i=0;$i<10000;$i++)
{
$h = fopen('/home/testdir/testfile'.$i.'.html','w');
fwrite($h,'AAAA');
fclose($h);
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37845&edit=1