mirror of
https://github.com/php/php-src.git
synced 2024-12-01 22:03:36 +08:00
cb96148912
# Original patch by Matt Wilmas
20 lines
254 B
PHP
20 lines
254 B
PHP
--TEST--
|
|
Bug #33282 (Re-assignment by reference does not clear the is_ref flag)
|
|
--FILE--
|
|
<?php
|
|
$a = array(1, 2, 3);
|
|
$r = &$a[0];
|
|
$r = &$a[1];
|
|
$r = &$a[2];
|
|
var_dump($a);
|
|
?>
|
|
--EXPECT--
|
|
array(3) {
|
|
[0]=>
|
|
int(1)
|
|
[1]=>
|
|
int(2)
|
|
[2]=>
|
|
&int(3)
|
|
}
|