Skip to content

Commit 583959d

Browse files
committed
Note proper usage of escapeArgument()
1 parent 186ffde commit 583959d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/functions.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
if (!\function_exists(__NAMESPACE__ . '\\escapeArgument')) {
99
if (IS_WINDOWS) {
1010
/**
11-
* Escapes the command argument for safe inclusion into a Windows command string.
11+
* Escapes the command argument for safe inclusion into a Windows command string used with proc_open()
12+
* and the option bypass_shell=true.
1213
*/
1314
function escapeArgument(string $arg): string
1415
{
@@ -18,7 +19,7 @@ function escapeArgument(string $arg): string
1819
}
1920
} else {
2021
/**
21-
* Escapes the command argument for safe inclusion into a Posix shell command string.
22+
* Escapes the command argument for safe inclusion into a Posix shell command string used with proc_open().
2223
*/
2324
function escapeArgument(string $arg): string
2425
{

0 commit comments

Comments
 (0)