xref: /php-src/ext/standard/tests/array/bug44182.phpt (revision d679f022)
1--TEST--
2Bug #44182 (extract EXTR_REFS can fail to split copy-on-write references)
3--FILE--
4<?php
5$a = array('foo' => 'original.foo');
6
7$nonref = $a['foo'];
8$ref = &$a;
9
10extract($a, EXTR_REFS);
11$a['foo'] = 'changed.foo';
12
13var_dump($nonref);
14echo "Done\n";
15?>
16--EXPECTF--
17string(%d) "original.foo"
18Done
19