Document that proc_open() also accepts a $cmd array as of PHP 7.4.0

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349246 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-02-21 09:59:46 +00:00
parent 58a26b846d
commit f811c29cdc

View file

@ -12,7 +12,7 @@
&reftitle.description;
<methodsynopsis>
<type>resource</type><methodname>proc_open</methodname>
<methodparam><type>string</type><parameter>cmd</parameter></methodparam>
<methodparam><type>mixed</type><parameter>cmd</parameter></methodparam>
<methodparam><type>array</type><parameter>descriptorspec</parameter></methodparam>
<methodparam><type>array</type><parameter role="reference">pipes</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>cwd</parameter><initializer>&null;</initializer></methodparam>
@ -47,7 +47,8 @@
<term><parameter>cmd</parameter></term>
<listitem>
<para>
The command to execute
The commandline to execute as &string;. Special characters have to be properly escaped,
and proper quoting has to be applied.
</para>
<note>
<simpara>
@ -63,6 +64,11 @@
<parameter>cmd</parameter> (see example below).
</simpara>
</note>
<para>
As of PHP 7.4.0, <parameter>cmd</parameter> may be passed as &array; of command parameters.
In this case the process will be opened directly (without going through a shell)
and PHP will take care of any necessary argument escaping.
</para>
</listitem>
</varlistentry>
<varlistentry>
@ -181,6 +187,13 @@
</row>
</thead>
<tbody>
<row>
<entry>7.4.0</entry>
<entry>
<function>proc_open</function> now also accepts an &array;
for the <parameter>cmd</parameter>.
</entry>
</row>
<row>
<entry>7.4.0</entry>
<entry>