From: chris at cjconsulting dot co dot uk
Operating system: Windows Server 2003
PHP version: 4.3.4
PHP Bug Type: IIS related
Bug description: Cant use exec() or passthru()
Description:
------------
I recently had to upgrade a host to Windows 2003 Server, IIS 6 and PHP
4.3.4. Everything seems to work OK except when I try to use exec() or
passthru(). I get errors similar to the following
Warning: passthru(): Unable to fork [c:/Inet/MIS/sql/echo.bat] in
c:\inet\MIS\MIS\Conv.php on line 91
Both exec() and passthru() give the same error.
I stall have another host running Windows 2000 Server, IIS 5 PHP 4.3.2 and
the same code works fine.
I've checked all the config options for scripting and turned them all on!
By default 2003 Server and IIS installs in a heavily protected mode
Reproduce code:
---------------
if ($Action == "PerlBat")
{
$Ans = passthru("echo.bat", $Ret);
}
echo.bat
--------
echo "hello bat !!!" 1>echo.outbat 2>>echo.err
NOTE: the above is just a simple example script, my applications run much
more complicated scripts
Expected result:
----------------
I expect the script to execute.
Actual result:
--------------
Script fails to run.
--
Edit bug report at http://bugs.php.net/?id=26140&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26140&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26140&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26140&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26140&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26140&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26140&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26140&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26140&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26140&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26140&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26140&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26140&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26140&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26140&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26140&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26140&r=float