php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26140 Cant use exec() or passthru()
Submitted: 2003-11-05 08:40 UTC Modified: 2003-11-17 18:13 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: chris at cjconsulting dot co dot uk Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.4 OS: Windows Server 2003
Private report: No CVE-ID: None
 [2003-11-05 08:40 UTC] chris at cjconsulting dot co dot uk
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-17 18:13 UTC] sniper@php.net
Misconfigured webserver/PHP. Ask further support questions elsewhere. (can not reproduce)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC