summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_lexer.l
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2016-11-13 13:22:35 +0100
committerBob Weinand <bobwei9@hotmail.com>2016-11-13 13:22:35 +0100
commitef657978b24d889ab335c2c238352f5152188705 (patch)
treec21d984f5e1820f5b3b801b4e90e0958361f875e /sapi/phpdbg/phpdbg_lexer.l
parentdbd504eaa9bd6e5055d589753d5e9da5db3d15ab (diff)
parentba75d4c50b973f6b85e8d6abab79d8c3aee2737a (diff)
downloadphp-git-ef657978b24d889ab335c2c238352f5152188705.tar.gz
Merge branch 'PHP-7.0' into PHP-7.1
Diffstat (limited to 'sapi/phpdbg/phpdbg_lexer.l')
-rw-r--r--sapi/phpdbg/phpdbg_lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_lexer.l b/sapi/phpdbg/phpdbg_lexer.l
index 820eac7f84..422cda4f2c 100644
--- a/sapi/phpdbg/phpdbg_lexer.l
+++ b/sapi/phpdbg/phpdbg_lexer.l
@@ -160,7 +160,7 @@ INPUT ("\\"[#"']|["]("\\\\"|"\\"["]|[^\n\000"])+["]|[']("\\"[']|"\\\\"|[^\
<NORMAL>{GENERIC_ID} {
phpdbg_init_param(yylval, STR_PARAM);
- yylval->str = estrndup(yytext + (*yytext == '\'' || *yytext == '\"'), yyleng - unescape_string(yytext));
+ yylval->str = estrndup(yytext, yyleng - unescape_string(yytext));
yylval->len = yyleng;
return T_ID;
}