mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
18 lines
312 B
PHP
18 lines
312 B
PHP
--TEST--
|
|
Bug #71695 (Global variables are reserved before execution)
|
|
--FILE--
|
|
<?php
|
|
function provideGlobals() {
|
|
var_dump(array_key_exists("foo", $GLOBALS));
|
|
var_dump(isset($GLOBALS["foo"]));
|
|
$GLOBALS += array("foo" => "foo");
|
|
}
|
|
|
|
provideGlobals();
|
|
echo $foo;
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(false)
|
|
foo
|