Test use of string names with \ prefix

And drop piece of dead code
This commit is contained in:
Nikita Popov 2014-09-23 20:35:32 +02:00
parent 182ddfeaf2
commit 231dcc94e8
3 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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: