unset_cv11.phpt 292 B

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