php-src/Zend/tests/bug33282.phpt

20 lines
253 B
Plaintext
Raw Normal View History

--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);
?>
2018-10-14 15:45:48 +00:00
--EXPECT--
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
&int(3)
}