php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37604 status code is always -1
Submitted: 2006-05-26 16:28 UTC Modified: 2006-06-05 01:00 UTC
From: ph18 at cornell dot edu Assigned:
Status: No Feedback Package: Program Execution
PHP Version: 5.1.4 OS: Solaris 9
Private report: No CVE-ID: None
 [2006-05-26 16:28 UTC] ph18 at cornell dot edu
Description:
------------
The exit status code of any process I run through either system() or proc_open() is always -1

Reproduce code:
---------------
system("exit 12",$status_code)
print "[$status_code]";



Expected result:
----------------
12

Actual result:
--------------
-1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-28 15:17 UTC] iliaa@php.net
Did you compile your PHP with the --enable-sigchild flag?
 [2006-06-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 09 08:01:27 2024 UTC