2007-02-07 11:10:32 +00:00
|
|
|
--TEST--
|
2018-10-14 16:03:31 +00:00
|
|
|
globals in local scope - 3
|
2009-07-17 08:18:27 +00:00
|
|
|
--INI--
|
2007-02-07 11:10:32 +00:00
|
|
|
variables_order="egpcs"
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
function test() {
|
2020-02-03 21:52:20 +00:00
|
|
|
include __DIR__."/globals.inc";
|
2007-02-07 11:10:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
test();
|
|
|
|
|
|
|
|
echo "Done\n";
|
|
|
|
?>
|
2018-09-16 17:16:42 +00:00
|
|
|
--EXPECTF--
|
2007-02-07 11:10:32 +00:00
|
|
|
bool(true)
|
|
|
|
bool(false)
|
|
|
|
string(5) "array"
|
|
|
|
int(%d)
|
|
|
|
string(%d) "%s"
|
|
|
|
|
2020-08-03 09:26:54 +00:00
|
|
|
Warning: Undefined array key "PHP_SELF" in %s on line %d
|
2007-02-07 11:10:32 +00:00
|
|
|
NULL
|
|
|
|
|
2020-12-02 16:47:33 +00:00
|
|
|
Warning: Undefined global variable $_SERVER in %s on line %d
|
2007-02-07 11:10:32 +00:00
|
|
|
NULL
|
|
|
|
Done
|