1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 00:32:23 +01:00
Files
archived-php-src/ext/standard/tests/array/bug44182.phpt

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