mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
13 lines
316 B
PHP
13 lines
316 B
PHP
--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--
|
|
string(12) "original.foo"
|