mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Document proc_open()'s ability to use stream resources in $descriptorspec
(closes #45510) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@267863 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
a1e01bf831
commit
ccfc91f3f6
1 changed files with 15 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<!-- $Revision: 1.18 $ -->
|
||||
<!-- splitted from ./en/functions/exec.xml, last change in rev 1.28 -->
|
||||
<refentry xml:id='function.proc-open' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
|
@ -60,8 +60,20 @@
|
|||
process. 0 is stdin, 1 is stdout, while 2 is stderr.
|
||||
</para>
|
||||
<para>
|
||||
The currently supported pipe types are <literal>file</literal> and
|
||||
<literal>pipe</literal> <!-- and <literal>pty</literal>-->.
|
||||
Each element can be:
|
||||
<simplelist>
|
||||
<member>An array describing the pipe to pass to the process. The first
|
||||
element is the descriptor type and the second element is an option for
|
||||
the given type. Valid types are <literal>pipe</literal> (the second
|
||||
element is either <literal>r</literal> to pass the read end of the pipe
|
||||
to the process, or <literal>w</literal> to pass the write end) and
|
||||
<literal>file</literal> (the second element is a filename).
|
||||
</member>
|
||||
<member>
|
||||
A stream resource representing a real file descriptor (e.g. opened file,
|
||||
a socket, <constant>STDIN</constant>).
|
||||
</member>
|
||||
</simplelist>
|
||||
</para>
|
||||
<para>
|
||||
The file descriptor numbers are not limited to 0, 1 and 2 - you may
|
||||
|
|
Loading…
Reference in a new issue