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