1--TEST--
2Test extract() for overwrite of GLOBALS
3--FILE--
4<?php
5$str = "John";
6var_dump($GLOBALS["str"]);
7
8/* Extracting Global Variables */
9$splat = array("foo" => "bar");
10var_dump(extract(array("GLOBALS" => $splat, EXTR_OVERWRITE)));
11
12unset ($splat);
13
14var_dump($GLOBALS["str"]);
15
16echo "\nDone";
17?>
18--EXPECT--
19string(4) "John"
20int(1)
21string(4) "John"
22
23Done
24