mirror of
https://github.com/php/php-src.git
synced 2025-01-20 10:43:40 +08:00
6d8760677d
- altered EXPECT for parser errors. This may or may not be a Good Thing.
22 lines
296 B
PHP
22 lines
296 B
PHP
--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) {
|
|
[u"default"]=>
|
|
unicode(2) "ok"
|
|
}
|
|
array(1) {
|
|
[u"default"]=>
|
|
unicode(2) "ok"
|
|
}
|
|
ok
|