Patch 60350.diff for Scripting Engine problem Bug #61827
Patch version 2012-04-23 15:35 UTC
Return to Bug #61827 |
Download this patch
Patch Revisions:
Developer: ab
diff --git a/Zend/zend_language_scanner.c b/Zend/zend_language_scanner.c
index 3f6189e..73b8b3b 100644
--- a/Zend/zend_language_scanner.c
+++ b/Zend/zend_language_scanner.c
@@ -907,7 +907,11 @@ static void zend_scan_escape_string(zval *zendlval, char *str, int len, char quo
zendlval->value.str.len--;
break;
case 'e':
+#ifdef PHP_WIN32
+ *t++ = (char)27;
+#else
*t++ = '\e';
+#endif
zendlval->value.str.len--;
break;
case '"':
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l
index d530b53..1560a86 100644
--- a/Zend/zend_language_scanner.l
+++ b/Zend/zend_language_scanner.l
@@ -905,7 +905,11 @@ static void zend_scan_escape_string(zval *zendlval, char *str, int len, char quo
zendlval->value.str.len--;
break;
case 'e':
+#ifdef PHP_WIN32
+ *t++ = (char)27;
+#else
*t++ = '\e';
+#endif
zendlval->value.str.len--;
break;
case '"':
|