php-src/Zend/tests/unset_cv11.phpt
2021-07-31 08:34:57 +02:00

22 lines
292 B
PHP

--TEST--
unset() CV 11 (unset() of copy destroys original value)
--FILE--
<?php
$x = array("default"=>"ok");
var_dump($x);
$cf = $x;
unset($cf['default']);
var_dump($x);
echo "ok\n";
?>
--EXPECT--
array(1) {
["default"]=>
string(2) "ok"
}
array(1) {
["default"]=>
string(2) "ok"
}
ok