proc_close() automatically closes open pipes

At least as of PHP 5.0.0.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350242 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-07-29 15:45:35 +00:00
parent 4aab798782
commit 350d95443a

View file

@ -18,8 +18,8 @@
except that it only works on processes opened by
<function>proc_open</function>.
<function>proc_close</function> waits for the process to terminate, and
returns its exit code. If you have open pipes to that process, you
should <function>fclose</function> them prior to calling this function in
returns its exit code. Open pipes to that process are closed
when this function is called, in
order to avoid a deadlock - the child process may not be able to exit
while the pipes are open.
</para>