svn: /phpdoc/en/trunk/reference/ exec/functions/proc-close.xml filesystem/functions/pclose.xml
| From: | Kalle Sommer Nielsen | Date: | Fri, 22 Oct 2010 12:09:54 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/ exec/functions/proc-close.xml filesystem/functions/pclose.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7291@lists.php.net to get a copy of this message | ||
kalle Fri, 22 Oct 2010 12:09:54 +0000
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
Bug: http://bugs.php.net/52815 (Assigned) pclose return
value documentation.
Changed paths:
U phpdoc/en/trunk/reference/exec/functions/proc-close.xml
U phpdoc/en/trunk/reference/filesystem/functions/pclose.xml
Modified: phpdoc/en/trunk/reference/exec/functions/proc-close.xml
===================================================================
--- phpdoc/en/trunk/reference/exec/functions/proc-close.xml 2010-10-22 12:09:18 UTC (rev 304617)
+++ phpdoc/en/trunk/reference/exec/functions/proc-close.xml 2010-10-22 12:09:54 UTC (rev 304618)
@@ -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
Modified: phpdoc/en/trunk/reference/filesystem/functions/pclose.xml
===================================================================
--- phpdoc/en/trunk/reference/filesystem/functions/pclose.xml 2010-10-22 12:09:18 UTC (rev 304617)
+++ phpdoc/en/trunk/reference/filesystem/functions/pclose.xml 2010-10-22 12:09:54 UTC (rev 304618)
@@ -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 @@
</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>