summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug44182.phpt
blob: 47f3caafb8ead43361f60984d20ed4c8031e1b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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