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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chris at cjconsulting dot co dot uk
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat May 10 01:01:28 2025 UTC