ID: 24759
User updated by: jkramer at controlvision dot com
Reported By: jkramer at controlvision dot com
Status: Bogus
Bug Type: IIS related
Operating System: Windows XP
PHP Version: 4.3.2
New Comment:
I have found the CLI version of PHP and this does not happen in the CLI
version. Thanks for the input.. you should make some type of warning
about running via the command line when using the CGI version.
Previous Comments:
------------------------------------------------------------------------
[2003-07-23 02:28:19] [EMAIL PROTECTED]
Use cli (c:\php\cli\php.exe) if you want to start a php command line
processor.
------------------------------------------------------------------------
[2003-07-23 00:58:39] [EMAIL PROTECTED]
You are running the CGI version of PHP and it picks up the script name
from the environment now, rather than from the command line as it is
"more secure".
There is (or should be) an ini setting to control this, however, you
probably want to be running the CLI version of PHP from your scripts
instead.
------------------------------------------------------------------------
[2003-07-22 18:42:12] jkramer at controlvision dot com
Description:
------------
In a PHP script running under IIS 5.1, with Windows XP (this has been
reproduced on Windows 2000 as well), I try to execute another PHP
process and get as many php sessions as can open up till my machine
starts to halt because it goes out of memory.
Note, I have made sure it hits that line of code only once, by doing
"cmd /c Start C:\php\php.exe -f phpfile.php" and doing an echo
"before"; and echo "after"; before and after the line of code, before
and after get echoed ONCE.
This command works correctly via the commandline.
Reproduce code:
---------------
<?PHP
exec('c:\php\php.exe -f C:\inetpub\wwwroot\anotherphpfile.php');
?>
Expected result:
----------------
The application to run once.. not 50-100 or more times..
Actual result:
--------------
PHP executes numerous times, for one line of code..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24759&edit=1