From cec739603981e00967ba12e7090108d2e3d066f1 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Fri, 22 Oct 2010 12:09:54 +0000 Subject: [PATCH] Fixed bug #52815 (pclose return value documentation.) # The same applies to proc_close() as they both use the same # internal exit logic git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304618 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/exec/functions/proc-close.xml | 16 +++++++++++++++- reference/filesystem/functions/pclose.xml | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/reference/exec/functions/proc-close.xml b/reference/exec/functions/proc-close.xml index b61cfba3ea..6dcee79c69 100644 --- a/reference/exec/functions/proc-close.xml +++ b/reference/exec/functions/proc-close.xml @@ -45,10 +45,24 @@ &reftitle.returnvalues; - Returns the termination status of the process that was run. + Returns the termination status of the process that was run. In case of + an error then -1 is returned. + + &reftitle.notes; + + Unix Only: + + proc_close is internally implemented using the + waitpid(3) system call. To obtain the real exit + status code the pcntl_wexitstatus function + should be used. + + + +