From:             jkramer at controlvision dot com
Operating system: Windows XP
PHP version:      4.3.2
PHP Bug Type:     IIS related
Bug description:  exec() or system() et all cause an infinite loop of starting 
requested program

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 bug report at http://bugs.php.net/?id=24759&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24759&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24759&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24759&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24759&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24759&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24759&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24759&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24759&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24759&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24759&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24759&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24759&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24759&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24759&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24759&r=gnused

Reply via email to