mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
22 lines
292 B
Plaintext
22 lines
292 B
Plaintext
|
--TEST--
|
||
|
unset() CV 11 (unset() of copy destoies 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
|