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