1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/standard/tests/array/extract_variation1.phpt
Nikita Popov e2c8ab7c33 Print "interned" instead of fake refcount in debug_zval_dump()
debug_zval_dump() currently prints refcount 1 for interned strings
and arrays, which does not really reflect the truth. These values
are not refcounted, so the refcount is misleading. Instead print
an "interned" tag.

Closes GH-6598.
2021-01-15 12:21:24 +01:00

27 lines
321 B
PHP

--TEST--
Test extract() function (variation 1)
--FILE--
<?php
$val = 4;
$str = "John";
var_dump($val);
var_dump($str);
/* Extracting Global Variables */
var_dump(extract($GLOBALS, EXTR_REFS));
var_dump($val);
var_dump($str);
echo "\nDone";
?>
--EXPECTF--
int(4)
string(4) "John"
int(%d)
int(4)
string(4) "John"
Done