From d4fc011c85ed673692d442c8312ea5ced28dae71 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Mon, 25 May 2020 15:53:30 +0000 Subject: [PATCH] escapeshellcmd() works on Windows for a looong time git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349978 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/exec/functions/escapeshellcmd.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/reference/exec/functions/escapeshellcmd.xml b/reference/exec/functions/escapeshellcmd.xml index fc2331c300..783cbb624b 100644 --- a/reference/exec/functions/escapeshellcmd.xml +++ b/reference/exec/functions/escapeshellcmd.xml @@ -27,8 +27,9 @@ Following characters are preceded by a backslash: &#;`|*?~<>^()[]{}$\, \x0A and \xFF. ' and " - are escaped only if they are not paired. In Windows, all these characters - plus % and ! are replaced by a space instead. + are escaped only if they are not paired. On Windows, all these characters + plus % and ! are preceded by a caret + (^). @@ -105,6 +106,13 @@ system($escaped_command); Exclamation marks are replaced by spaces. + + 5.3.0 + + On Windows, the special characters are now properly escaped. + Previously, they have been replaced with a space character. + +