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