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