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
20--EXPECTF--
21int(4)
22string(4) "John" refcount(%d)
23int(%d)
24int(4)
25string(4) "John" refcount(%d)
26
27Done
28