xref: /PHP-7.1/Zend/tests/unset_cv11.phpt (revision 3d383e45)
1--TEST--
2unset() CV 11 (unset() of copy destoies 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