mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
14 lines
326 B
Plaintext
14 lines
326 B
Plaintext
|
--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);
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
%unicode|string%(12) "original.foo"
|