php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51912 system(): Unable to fork
Submitted: 2010-05-26 01:19 UTC Modified: 2010-06-10 13:05 UTC
From: z0ned at hotmail dot com Assigned:
Status: Not a bug Package: Program Execution
PHP Version: 5.3.2 OS: Ubuntu Linux 10.04LTS Lucid
Private report: No CVE-ID: None
 [2010-05-26 01:19 UTC] z0ned at hotmail dot com
Description:
------------
On an Ubuntu 10.04LTS Lucid system with PHP 5.3.2-1ubuntu4.2

Running from the command line: php some_script.php

Calling within: system('/usr/bin/php a_script.php');

Getting:

PHP Warning:  system(): Unable to fork [/usr/bin/php a_script.php] in /path/to/some_script.php on line 258

I've seen plenty of bug reports for Windows users but this is under Linux and I don't see any open reports for Linux.


Expected result:
----------------
On a different Ubuntu 9.10 Karmic system with PHP 5.2.10-2ubuntu6.4, the same code works fine, e.g. a_script.php is executed and the output is displayed.


Actual result:
--------------
The script specified in the system() call is not executed and no output is displayed, just the "Unable to fork" warning.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-26 01:47 UTC] z0ned at hotmail dot com
/etc/php5/cli/php.ini has:
safe_mode = Off
disable_functions =
 [2010-06-10 13:05 UTC] fa@php.net
-Status: Open +Status: Bogus
 [2010-06-10 13:05 UTC] fa@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

PHP 5.3.2-1ubuntu4.2 is the Ubuntu version of PHP.
Please try the release from php.net, the current svn snapshot or report bugs to Ubuntu.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 01:01:28 2024 UTC