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