1--TEST--
2Test extract() function (variation 1)
3--FILE--
4<?php
5
6$val = 4;
7$str = "John";
8
9debug_zval_dump($val);
10debug_zval_dump($str);
11
12/* Extracting Global Variables */
13var_dump(extract($GLOBALS, EXTR_REFS));
14debug_zval_dump($val);
15debug_zval_dump($str);
16
17echo "\nDone";
18?>
19--EXPECTF--
20int(4)
21string(4) "John" refcount(%d)
22int(%d)
23int(4)
24string(4) "John" refcount(%d)
25
26Done
27