mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
20 lines
303 B
PHP
20 lines
303 B
PHP
--TEST--
|
|
Bug #44182 (extract EXTR_REFS can fail to split copy-on-write references)
|
|
--FILE--
|
|
<?php
|
|
$a = array('foo' => 'original.foo');
|
|
|
|
$nonref = $a['foo'];
|
|
$ref = &$a;
|
|
|
|
extract($a, EXTR_REFS);
|
|
$a['foo'] = 'changed.foo';
|
|
|
|
var_dump($nonref);
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
string(%d) "original.foo"
|
|
Done
|
|
|