blob: 3da73cb1a6ced32f0a0fbf9561e9b6664aefb3eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
Bug #44181 (extract EXTR_OVERWRITE|EXTR_REFS can fail to create references)
--FILE--
<?php
$a = array('foo' => 'original.foo');
$foo = 'test';
$ref = &$a;
extract($a, EXTR_OVERWRITE|EXTR_REFS);
$foo = 'changed.foo';
var_dump($a['foo']);
echo "Done\n";
?>
--EXPECTF--
string(%d) "changed.foo"
Done
|