php-8.0.30-src/ext/standard/tests/array/bug70250.phpt

22 lines
260 B
PHP

--TEST--
Bug #70250 (extract() turns array elements to references)
--FILE--
<?php
$array = ['key' => 'value'];
$ref = &$array['key'];
unset($ref);
extract($array);
$key = "bad";
var_dump($array);
?>
--EXPECT--
array(1) {
["key"]=>
string(5) "value"
}