diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2016-09-27 20:26:16 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2016-10-14 14:14:08 +0200 |
commit | 2cc3aeb4b98bcbc9572041b2f7d3276aabd51aae (patch) | |
tree | 35ddff394311b445740544f6abbd1e471ea0ae03 /Zend/zend_language_scanner.l | |
parent | 6e3ab61fa5a199fd085ccd91476c14499362ecb9 (diff) | |
download | php-git-2cc3aeb4b98bcbc9572041b2f7d3276aabd51aae.tar.gz |
Implement #72918: negative offset inside a quoted string leads to parse error
We allow negative numeric offsets for the simple syntax inside
double-quoted and heredoc strings.
Diffstat (limited to 'Zend/zend_language_scanner.l')
-rw-r--r-- | Zend/zend_language_scanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l index b627a89fcb..546470c1b6 100644 --- a/Zend/zend_language_scanner.l +++ b/Zend/zend_language_scanner.l @@ -1877,7 +1877,7 @@ inline_char_handler: } <ST_VAR_OFFSET>{TOKENS}|[{}"`] { - /* Only '[' can be valid, but returning other tokens will allow a more explicit parse error */ + /* Only '[' or '-' can be valid, but returning other tokens will allow a more explicit parse error */ RETURN_TOKEN(yytext[0]); } |