1--TEST-- 2globals in global scope 3--INI-- 4variables_order="egpcs" 5--FILE-- 6<?php 7 8var_dump(isset($_SERVER)); 9var_dump(empty($_SERVER)); 10var_dump(gettype($_SERVER)); 11var_dump(count($_SERVER)); 12 13var_dump($_SERVER['PHP_SELF']); 14unset($_SERVER['PHP_SELF']); 15var_dump($_SERVER['PHP_SELF']); 16 17unset($_SERVER); 18var_dump($_SERVER); 19 20echo "Done\n"; 21?> 22--EXPECTF-- 23bool(true) 24bool(false) 25string(5) "array" 26int(%d) 27string(%d) "%s" 28 29Warning: Undefined array key "PHP_SELF" in %s on line %d 30NULL 31 32Warning: Undefined global variable $_SERVER in %s on line %d 33NULL 34Done 35