xref: /PHP-8.2/Zend/tests/unset_cv11.phpt (revision ffc87174)
1--TEST--
2unset() CV 11 (unset() of copy destroys original value)
3--FILE--
4<?php
5$x = array("default"=>"ok");
6var_dump($x);
7$cf = $x;
8unset($cf['default']);
9var_dump($x);
10echo "ok\n";
11?>
12--EXPECT--
13array(1) {
14  ["default"]=>
15  string(2) "ok"
16}
17array(1) {
18  ["default"]=>
19  string(2) "ok"
20}
21ok
22