1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 23:23:03 +02:00
Files
archived-php-src/Zend/tests/varSyntax/globalNonSimpleVariableError.phpt
Nikita Popov 6a195cacf3 Treat attribute argument lists like normal argument lists
Allow trailing comma. Syntactically allow unpacking, but forbid it
during compilation.

The trailing comma test-case is adopted from GH-5796.
2020-07-02 15:27:45 +02:00

11 lines
207 B
PHP

--TEST--
Global keyword only accepts simple variables
--FILE--
<?php
global $$foo->bar;
?>
--EXPECTF--
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ';' or ',' in %s on line %d