1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix \e escape character on Windows

\e is not part of the C standard.

Closes GH-13058
This commit is contained in:
Ilija Tovilo
2023-12-31 13:42:28 +01:00
parent c68f4f616c
commit 37d5bee1dc

View File

@@ -84,7 +84,7 @@ static void ir_print_escaped_str(const char *s, size_t len, FILE *f)
case '\"': fputs("\\\"", f); break; case '\"': fputs("\\\"", f); break;
case '\a': fputs("\\a", f); break; case '\a': fputs("\\a", f); break;
case '\b': fputs("\\b", f); break; case '\b': fputs("\\b", f); break;
case '\e': fputs("\\e", f); break; case '\033': fputs("\\e", f); break;
case '\f': fputs("\\f", f); break; case '\f': fputs("\\f", f); break;
case '\n': fputs("\\n", f); break; case '\n': fputs("\\n", f); break;
case '\r': fputs("\\r", f); break; case '\r': fputs("\\r", f); break;