1--TEST-- 2Test extract() function - ensure EXTR_REFS works when array is referenced and keys clash with variables in current scope. 3--FILE-- 4<?php 5$a = array('foo' => 'original.foo'); 6$ref = &$a; 7$foo = 'test'; 8extract($a, EXTR_OVERWRITE|EXTR_REFS); 9$foo = 'changed.foo'; 10var_dump($a['foo']); 11?> 12--EXPECTF-- 13string(11) "changed.foo" 14