php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11177 PHP 4.0.5 (ISAPI) can't use exec(), system(), etc
Submitted: 2001-05-29 17:54 UTC Modified: 2001-05-30 05:08 UTC
From: alain at valain dot com Assigned:
Status: Closed Package: Program Execution
PHP Version: 4.0.5 OS: Windows 2000 Server
Private report: No CVE-ID: None
 [2001-05-29 17:54 UTC] alain at valain dot com
When PHP 4.0.5 (or 4.0.4pl1 for that matter) is installed as an ISAPI module for IIS 5 on Windows 2000, calls to exec(), system() and so on give errors like this:
<-- snip -->
Warning: Unable to fork [del c:\inetpub\wwwroot\icp1sp\faxmaker\*.pdf] in c:\inetpub\wwwroot\icp1sp\admin\create_notifications.php on line 44
<-- snip -->
Running PHP as a CGI does not produce this error, and the call to exec(), system() etc. works as expected.

Here is one example that produces the error. The same example works perfectly fine when PHP runs as a CGI.
<-- snip -->
echo exec( "del " . DIRFAXMAKER . "*.pdf" );
<-- snip -->

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 04:01:26 2019 UTC