Skip to content

Commit a057cf4

Browse files
committed
Merge branch '3.4' into 4.3
* 3.4: Add real-world example to separate flags and value
2 parents 1581605 + 5a3c1f6 commit a057cf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/process.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ Using array of arguments is the recommended way to define commands. This
103103
saves you from any escaping and allows sending signals seamlessly
104104
(e.g. to stop processes before completion)::
105105

106-
$process = new Process(['/path/command', '--flag', 'arg 1', 'etc.']);
106+
$process = new Process(['/path/command', '--option', 'argument', 'etc.']);
107+
$process = new Process(['/path/to/php', '--define', 'memory_limit=1024M', '/path/to/script.php']);
107108

108109
If you need to use stream redirections, conditional execution, or any other
109110
feature provided by the shell of your operating system, you can also define

0 commit comments

Comments
 (0)