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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
49 + 46 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Sat Apr 27 01:01:30 2024 UTC