mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Test use of string names with \ prefix
And drop piece of dead code
This commit is contained in:
parent
182ddfeaf2
commit
231dcc94e8
@ -34,6 +34,7 @@ $obj = new Test;
|
||||
['Test', 'id']()()('var_dump')(11);
|
||||
'id'()('id')('var_dump')(12);
|
||||
('i' . 'd')()('var_dump')(13);
|
||||
'\id'('var_dump')(14);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
@ -51,3 +52,4 @@ int(10)
|
||||
int(11)
|
||||
int(12)
|
||||
int(13)
|
||||
int(14)
|
||||
|
@ -19,6 +19,7 @@ var_dump($A_str::$b);
|
||||
var_dump($A_obj::$b);
|
||||
var_dump(('A' . '')::$b);
|
||||
var_dump('A'::$b);
|
||||
var_dump('\A'::$b);
|
||||
var_dump('A'[0]::$b);
|
||||
var_dump(A::$$b_str);
|
||||
var_dump(A::$$c_str[1]);
|
||||
@ -33,5 +34,6 @@ int(0)
|
||||
int(0)
|
||||
int(0)
|
||||
int(0)
|
||||
int(0)
|
||||
int(1)
|
||||
int(0)
|
||||
|
@ -1334,9 +1334,6 @@ again:
|
||||
if (LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-1] != '>') {
|
||||
CG(increment_lineno) = 1;
|
||||
}
|
||||
if (CG(has_bracketed_namespaces) && !CG(in_namespace)) {
|
||||
goto again;
|
||||
}
|
||||
retval = ';'; /* implicit ; */
|
||||
break;
|
||||
case T_OPEN_TAG_WITH_ECHO:
|
||||
|
Loading…
Reference in New Issue
Block a user