#42602 [Opn->Bgs]: Memory leak occurs when exec() function is used on Windows platform
| From: | jani@php.net | Date: | Sun, 09 Sep 2007 10:12:50 +0000 |
| Subject: | #42602 [Opn->Bgs]: Memory leak occurs when exec() function is used on Windows platform | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117323@lists.php.net to get a copy of this message | ||
ID: 42602
Updated by: jani@php.net
Reported By: melmack3 at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Performance problem
Operating System: Windows XP
PHP Version: 5.2.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2007-09-09 09:37:38] melmack3 at gmail dot com
Description:
------------
A simple PHP script (attached below) which executes empty Windows batch
file 1000 times causes ~10 MB memory leak.
Reproduce code:
---------------
<?php
for($i=0;$i<1000;$i++)
{
exec("test.bat");
}
?>
//test.bat is just an empty file.
Expected result:
----------------
Batch file "test.bat" should be executed 1000 times and amount of used
memory should not increase when PHP script has finished.
Actual result:
--------------
Batch file is executed properly but PHP script causes about 10 MB
memory leak. It can be observed by usage of performance system monitor.
However, this amount of memory is not taken by a certain process - it
simply disappears. PHP function memory_get_usage() also does not
indicate the leak.
Memory leak is observable only on Windows platform
(tested on Windows XP). On Linux everything works OK.
This problems occurs in all available enviroments :
- IIS Webserver.
- Apache webserver
- PHP command line interpreter
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42602&edit=1