xref: /PHP-8.2/ext/standard/tests/array/bug70250.phpt (revision dc5c6ab7)
1--TEST--
2Bug #70250 (extract() turns array elements to references)
3--FILE--
4<?php
5$array = ['key' => 'value'];
6
7$ref = &$array['key'];
8
9unset($ref);
10
11extract($array);
12
13$key = "bad";
14
15var_dump($array);
16?>
17--EXPECT--
18array(1) {
19  ["key"]=>
20  string(5) "value"
21}
22