mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
22 lines
260 B
PHP
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"
|
|
}
|