php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24111 system(): Unable to fork
Submitted: 2003-06-10 07:01 UTC Modified: 2003-08-06 11:05 UTC
Votes:8
Avg. Score:4.6 ± 0.7
Reproduced:7 of 7 (100.0%)
Same Version:1 (14.3%)
Same OS:3 (42.9%)
From: abramov at fromru dot com Assigned:
Status: No Feedback Package: IIS related
PHP Version: 4.3.2 OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-06-10 07:01 UTC] abramov at fromru dot com
Web-server: IIS 5
Both CGI and ISAPI installations produced following bug:

Code:
<?
print system('cmd ver');
?>

Result:
system(): Unable to fork 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-10 08:03 UTC] sniper@php.net
And what does 'php -v' output?
And what does phpinfo() has to say about the php version
under IIS?

 [2003-06-10 09:24 UTC] abramov at fromru dot com
php -v :
PHP 4.3.2 (cgi-fcgi), Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

phpinfo():
PHP Version 4.3.2
Server API : CGI/FastCGI 
GATEWAY_INTERFACE : CGI/1.1 

etc.
 [2003-07-29 15:21 UTC] sfox@php.net
Hi,

<?
print system('%COMSPEC% /c ver');
?>

should work on Windows systems anywhere.

Please could you try that and confirm if it's still giving the same error message?

PHP Folks: if it does, we could have the return of an ancient popen/exec issue .. but it's working fine on win9x..

?

 [2003-08-06 11:05 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-11-21 13:29 UTC] willeffects at yahoo dot com
I am getting the same error using 

<?
print system('%COMSPEC% /c ver');
?>

"Warning: system(): Unable to fork [%COMSPEC% /c ver] in"...

PHP Version 4.3.2

System 	Windows NT QUARTZ 5.2 build 3790
Build Date 	May 28 2003 15:06:05
Server API 	CGI/FastCGI
Virtual Directory Support 	enabled
Configuration File (php.ini) Path 	C:\WINDOWS\php.ini


this is with a hosting company.  Is there another solution to running a program (imagemagick)?
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 13:03:33 2021 UTC