mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
20 lines
310 B
PHP
20 lines
310 B
PHP
--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
|
|
|