php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

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} {
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 08:01:24 2019 UTC