Skip to content

Commit 0f7ba74

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Add real-world example to separate flags and value
2 parents 36965ac + a057cf4 commit 0f7ba74

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
@@ -114,7 +114,8 @@ Using array of arguments is the recommended way to define commands. This
114114
saves you from any escaping and allows sending signals seamlessly
115115
(e.g. to stop processes before completion)::
116116

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

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

0 commit comments

Comments
 (0)