1--TEST--
2Test extract() function - ensure EXTR_REFS doesn't mess with isRef flag on COW references to array elements.
3--FILE--
4<?php
5$a = array('foo' => 'original.foo');
6$nonref = $a['foo'];
7$ref = &$a;
8extract($a, EXTR_REFS);
9$a['foo'] = 'changed.foo';
10var_dump($nonref);
11?>
12--EXPECTF--
13%unicode|string%(12) "original.foo"
14