summaryrefslogtreecommitdiff
path: root/Zend/tests/varSyntax/globalNonSimpleVariableError.phpt
blob: 6162cbc993ff8d98c86ff9563ef43ecfd4f9cee3 (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Global keyword only accepts simple variables
--FILE--
<?php

global $$foo->bar;

?>
--EXPECTF--
Parse error: syntax error, unexpected token "->", expecting ";" or "," in %s on line %d