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
This commit is contained in:
Kalle Sommer Nielsen 2010-10-22 12:09:54 +00:00
parent 590845fd0e
commit cec7396039
2 changed files with 30 additions and 2 deletions

View file

@ -45,10 +45,24 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
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 <literal>-1</literal> is returned.
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<title>Unix Only:</title>
<para>
<function>proc_close</function> is internally implemented using the
<literal>waitpid(3)</literal> system call. To obtain the real exit
status code the <function>pcntl_wexitstatus</function> function
should be used.
</para>
</note>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file

View file

@ -37,7 +37,8 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
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 <literal>-1</literal> is returned.
</para>
</refsect1>
@ -58,6 +59,19 @@ pclose($handle);
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<title>Unix Only:</title>
<para>
<function>proc_close</function> is internally implemented using the
<literal>waitpid(3)</literal> system call. To obtain the real exit
status code the <function>pcntl_wexitstatus</function> function
should be used.
</para>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>