1--TEST-- 2Global keyword only accepts simple variables 3--FILE-- 4<?php 5 6global $$foo->bar; 7 8?> 9--EXPECTF-- 10Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ';' or ',' in %s on line %d 11