xref: /PHP-7.2/Zend/tests/bug71695.phpt (revision 186844be)
1--TEST--
2Bug #71695 (Global variables are reserved before execution)
3--FILE--
4<?php
5function provideGlobals() {
6	var_dump(array_key_exists("foo", $GLOBALS));
7	var_dump(isset($GLOBALS["foo"]));
8	$GLOBALS += array("foo" => "foo");
9}
10
11provideGlobals();
12echo $foo;
13?>
14--EXPECT--
15bool(false)
16bool(false)
17foo
18