Date: 01/03/01
- Next message: hl <email protected>: "[PHP-DEV] PHP 4.0 Bug #8531: $value = odbc_autocommit($handle) core dump"
- Previous message: jmoore <email protected>: "[PHP-DEV] PHP 4.0 Bug #8351 Updated: Undefined symbol"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: wez <email protected>
Operating system: Windows NT Server 4.0 (SP 6a), with Apache 1.3 as Apache module
PHP version: 4.0.4
PHP Bug Type: Program Execution
Bug description: system, exec and friends "unable to fork"
<?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.
-- Edit Bug report at: http://bugs.php.net/?id=8530&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: hl <email protected>: "[PHP-DEV] PHP 4.0 Bug #8531: $value = odbc_autocommit($handle) core dump"
- Previous message: jmoore <email protected>: "[PHP-DEV] PHP 4.0 Bug #8351 Updated: Undefined symbol"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

