summaryrefslogtreecommitdiff
path: root/Zend/zend_language_scanner.l
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-12-19 07:17:30 +0100
committerAnatol Belski <ab@php.net>2014-12-19 07:17:30 +0100
commit6b59b276fd066e1bef5d2217c8004549895bfa6a (patch)
tree6376d88655e1177bd6c4295ce7474422bd2d6210 /Zend/zend_language_scanner.l
parent6a992e45831fda3e7f5df120660e3fd59a08028a (diff)
downloadphp-git-6b59b276fd066e1bef5d2217c8004549895bfa6a.tar.gz
C89 compat
Diffstat (limited to 'Zend/zend_language_scanner.l')
-rw-r--r--Zend/zend_language_scanner.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l
index f140c805d0..9df75b7c43 100644
--- a/Zend/zend_language_scanner.l
+++ b/Zend/zend_language_scanner.l
@@ -949,6 +949,7 @@ static void zend_scan_escape_string(zval *zendlval, char *str, int len, char quo
size_t len = 0;
zend_bool valid = 1;
unsigned long codepoint;
+ size_t byte_len = 0;
if (*start != '{') {
/* we silently let this pass to avoid breaking code
@@ -995,7 +996,6 @@ static void zend_scan_escape_string(zval *zendlval, char *str, int len, char quo
}
/* based on https://en.wikipedia.org/wiki/UTF-8#Sample_code */
- size_t byte_len = 0;
if (codepoint < 0x80) {
byte_len = 1;
*t++ = codepoint;