mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
20 lines
310 B
Plaintext
20 lines
310 B
Plaintext
|
--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
|
||
|
|