From f811c29cdcb9ae601c51346f139ec75eef2ce334 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Fri, 21 Feb 2020 09:59:46 +0000 Subject: [PATCH] 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 --- reference/exec/functions/proc-open.xml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/reference/exec/functions/proc-open.xml b/reference/exec/functions/proc-open.xml index f5578ce5ad..02b2d18908 100644 --- a/reference/exec/functions/proc-open.xml +++ b/reference/exec/functions/proc-open.xml @@ -12,7 +12,7 @@ &reftitle.description; resourceproc_open - stringcmd + mixedcmd arraydescriptorspec arraypipes stringcwd&null; @@ -47,7 +47,8 @@ cmd - The command to execute + The commandline to execute as &string;. Special characters have to be properly escaped, + and proper quoting has to be applied. @@ -63,6 +64,11 @@ cmd (see example below). + + As of PHP 7.4.0, cmd 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. + @@ -181,6 +187,13 @@ + + 7.4.0 + + proc_open now also accepts an &array; + for the cmd. + + 7.4.0