Skip to content

Commit 60c3912

Browse files
committed
Document \ escaping of escapeshellarg on Windows
Cf. <https://bugs.php.net/69646>.
1 parent a049ea0 commit 60c3912

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reference/exec/functions/escapeshellarg.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
On Windows, <function>escapeshellarg</function> instead replaces percent
2727
signs, exclamation marks (delayed variable substitution) and double quotes
2828
with spaces and adds double quotes around the string.
29+
Furthermore, each streak of consecutive backslashes (<literal>\</literal>)
30+
is escaped by one additional backslash.
2931
</para>
3032
</refsect1>
3133

0 commit comments

Comments
 (0)