Skip to content

Commit 66a6252

Browse files
committed
Also allow variable variables with braces
1 parent 4209b54 commit 66a6252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_language_scanner.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ inline_char_handler:
18601860
RETURN_TOKEN(T_VARIABLE);
18611861
}
18621862

1863-
<ST_IN_SCRIPTING,ST_DOUBLE_QUOTES,ST_HEREDOC,ST_BACKQUOTE,ST_VAR_OFFSET>"$$"[^$a-zA-Z_\x7f-\xff] {
1863+
<ST_IN_SCRIPTING,ST_DOUBLE_QUOTES,ST_HEREDOC,ST_BACKQUOTE,ST_VAR_OFFSET>"$$"[^${a-zA-Z_\x7f-\xff] {
18641864
/* Don't catch false positives from variable variables */
18651865
yyless(yyleng - 1);
18661866
RETURN_TOKEN(T_PIPE_VARIABLE);

0 commit comments

Comments
 (0)