summaryrefslogtreecommitdiff
path: root/Zend/tests/bug33282.phpt
blob: 27f399046ebfcfae24dea5c11ac76b646924e1c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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)
}