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