Patch t-error-with-string for *General Issues Bug #76851
Patch version 2018-09-08 10:07 UTC
Return to Bug #76851 |
Download this patch
Patch Revisions:
Developer: cmb@php.net
Zend/zend_language_scanner.l | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l
index 99388f3589..316f546c78 100644
--- a/Zend/zend_language_scanner.l
+++ b/Zend/zend_language_scanner.l
@@ -2035,10 +2035,8 @@ inline_char_handler:
<ST_VAR_OFFSET>[ \n\r\t\\'#] {
/* Invalid rule to return a more explicit parse error with proper line number */
- yyless(0);
yy_pop_state();
- ZVAL_NULL(zendlval);
- RETURN_TOKEN_WITH_VAL(T_ENCAPSED_AND_WHITESPACE);
+ RETURN_TOKEN_WITH_STR(T_ERROR, 1);
}
<ST_IN_SCRIPTING,ST_VAR_OFFSET>{LABEL} {
|