Bug #8530 Updated: system, exec and friends "unable to fork"
| From: | sniper@php.net | Date: | Fri, 27 Apr 2001 23:21:09 +0000 |
| Subject: | Bug #8530 Updated: system, exec and friends "unable to fork" | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52649@lists.php.net to get a copy of this message | ||
ID: 8530
Updated by: sniper
Reported By: wez@ryltech.net
Old-Status: Duplicate
Status: Closed
Bug Type: Program Execution
PHP Version: 4.0.4
Assigned To:
Comments:
Fixed in CVS. Wait for 4.0.6
Previous Comments:
---------------------------------------------------------------------------
[2001-01-03 11:12:38] derick@php.net
Duplicate of 4761
---------------------------------------------------------------------------
[2001-01-03 11:12:23] derick@php.net
Duplicate of 4761
---------------------------------------------------------------------------
[2001-01-03 09:11:20] wez@ryltech.net
<?php
system("dir");
?>
This causes apache to hang until you kill the request handling process using the task manager; the
script then completes and produces the output:
Warning: Unable to fork [dir] in i:/cms.wwwroot/test/test.php on line 2
The same effect is evident with exec and popen.
The backtick operator causes Apache to GPF.
If you use the CGI version, things work as expected.
The binaries are those from php4win.de (php4.0.4-win32-20001210).
This sounds like a deadlock -- there is that mutex for chdir in the exec/popen code - maybe
it's related to that somehow? Or perhaps it's more of an issue with Apache itself.
If you need more info, just let me know.
--Wez.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8530&edit=2