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.
+
+