php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52815 pclose return value documentation.
Submitted: 2010-09-11 07:22 UTC Modified: 2010-10-22 14:10 UTC
From: bennet at mc dot edu Assigned: kalle (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2010-09-11 07:22 UTC] bennet at mc dot edu
Description:
------------
Judging by some limited experience and the user notes, it appears that the meaning of the return value from pclose() depends on whether php is installed as an Apache module or run as CGI.  In the former case, it seems to return the actual exit code, while in the later it seems to return the system status value which has to be pulled apart with pctl functions.

If this is right, the documentation should reflect it.  If not, the user comments indicate considerable confusion on the subject, with contradictory claims.  A clarification seems necessary.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-19 16:09 UTC] markskilbeck@php.net
-Assigned To: +Assigned To: zeev
 [2010-09-19 16:09 UTC] markskilbeck@php.net
Assigned to one of maintainers
 [2010-10-19 06:08 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: zeev +Assigned To:
 [2010-10-19 06:08 UTC] kalle@php.net
Zeev doesn't fix documentation bugs, removing the assigned to status
 [2010-10-22 13:41 UTC] kalle@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2010-10-22 13:41 UTC] kalle@php.net
Ill take this one, seems like the source of pclose() tells that theres a difference between Windows and other systems in the value thats returned. Plus the "error" return value is not documented either.
 [2010-10-22 14:09 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=304618
Log: Fixed bug #52815 (pclose return value documentation.)

# The same applies to proc_close() as they both use the same
# internal exit logic
 [2010-10-22 14:10 UTC] kalle@php.net
-Status: Assigned +Status: Closed
 [2010-10-22 14:10 UTC] kalle@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:08 UTC] phpdocbot@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=cec739603981e00967ba12e7090108d2e3d066f1
Log: Fixed bug #52815 (pclose return value documentation.)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 01 13:01:33 2024 UTC