global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / undefined-vgetg.php
blobf19bdd32cdda0fbfe3c0d5ef59c1ce41ed18926f
1 <?hh
3 // disable array -> "Array" conversion notice
4 error_reporting(error_reporting() & ~E_NOTICE);
6 function foo() {
7 global $foo;
8 return $foo;
10 foo();
11 $x = array_keys($GLOBALS);
12 sort(&$x);
13 foreach ($x as $k) {
14 echo "$k=>" . $GLOBALS[$k] . "\n";