Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 564 Bytes

PHPCompatibility.ParameterValues.NewProcOpenCmdArray.md

File metadata and controls

16 lines (9 loc) · 564 Bytes

Pattern: Use of $cmd as array for proc_open()

Issue: -

Description

As of PHP 7.4, proc_open() now also accepts an array instead of a string for the command.

In that case, the process will be opened directly (without going through a shell) and PHP will take care of any necessary argument escaping.

PHP version 7.4

Further Reading