Commit:    cc5b995c78038b92317b38356c9009ff80850d8b
Author:    Felipe Pena <felipe...@gmail.com>         Sun, 29 Apr 2012 19:35:52 
-0300
Parents:   6008f9af8fa6beab92a4c96d11d641c95f97162c
Branches:  PHP-5.4 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=cc5b995c78038b92317b38356c9009ff80850d8b

Log:
- Fixed bug #61827 (incorrect \e processing on Windows) patch by: a...@php.net

Bugs:
https://bugs.php.net/61827

Changed paths:
  M  Zend/zend_language_scanner.l


Diff:
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l
index d530b53..0a35f3f 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 '"':


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to