mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
b233de098d
Generate T_STRING_VARNAME only if it actually is one. This is only the case for "${varname}" and "${varname[offset]}" so we can just add a check for } or [ after the LABEL.
12 lines
126 B
PHP
12 lines
126 B
PHP
--TEST--
|
|
Bug #61681: Malformed grammar
|
|
--FILE--
|
|
<?php
|
|
$la = "ooxx";
|
|
|
|
echo "${substr('laruence', 0, 2)}";
|
|
|
|
?>
|
|
--EXPECT--
|
|
ooxx
|