ID:               42602
 Updated by:       [EMAIL PROTECTED]
 Reported By:      melmack3 at gmail dot com
 Status:           Bogus
 Bug Type:         Performance problem
 Operating System: Windows XP
 PHP Version:      5.2.4
 New Comment:

comment from melmack via email:

"You were right. I have fixed the problem.
The problem was caused by an additional firewall installed on both
computers with Windows XP used by me for testing process. When I
uninstalled it, the problem disappeared."

Apparently the firewall prevented running the scripts and left the
cmd.exe hanging around..



Previous Comments:
------------------------------------------------------------------------

[2007-09-09 10:12:50] [EMAIL PROTECTED]

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



------------------------------------------------------------------------

[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

Reply via email to