diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2018-06-27 23:06:25 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-06-27 23:06:25 +0200 |
commit | 9b02ee0bba86becc951b65bb6d3527cf3ba7265e (patch) | |
tree | f6a94591bdbb2fd4493f7e9bc22a6f2946dcb1c9 /ext/tokenizer/tokenizer.c | |
parent | 3f241f3caa3e66e4d0e61d27701c3ef3b7deea2b (diff) | |
download | php-git-9b02ee0bba86becc951b65bb6d3527cf3ba7265e.tar.gz |
Fixed bug #76538
Diffstat (limited to 'ext/tokenizer/tokenizer.c')
-rw-r--r-- | ext/tokenizer/tokenizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c index 66d6ba7262..58b271ef4b 100644 --- a/ext/tokenizer/tokenizer.c +++ b/ext/tokenizer/tokenizer.c @@ -194,7 +194,7 @@ void on_event(zend_php_scanner_event event, int token, int line, void *context) { if (token == END) break; /* Special cases */ - if (token == ';' && LANG_SCNG(yy_leng) == sizeof("?>") - 1) { + if (token == ';' && LANG_SCNG(yy_leng) > 1) { /* <? or <?\n or <?\r\n */ token = T_CLOSE_TAG; } else if (token == T_ECHO && LANG_SCNG(yy_leng) == sizeof("<?=") - 1) { token = T_OPEN_TAG_WITH_ECHO; |