globals_004.phpt 380 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. globals in local scope - 3
  3. --INI--
  4. variables_order="egpcs"
  5. --FILE--
  6. <?php
  7. function test() {
  8. include __DIR__."/globals.inc";
  9. }
  10. test();
  11. echo "Done\n";
  12. ?>
  13. --EXPECTF--
  14. bool(true)
  15. bool(false)
  16. string(5) "array"
  17. int(%d)
  18. string(%d) "%s"
  19. Warning: Undefined array key "PHP_SELF" in %s on line %d
  20. NULL
  21. Warning: Undefined global variable $_SERVER in %s on line %d
  22. NULL
  23. Done