|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
37 - 28 = ?
Subscribe to this entry?

 [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 -->


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Jun 01 22:03:39 2023 UTC