summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug70853.phpt
blob: 99530ece40742eb8c8a2579083c6164257435e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #70853 (SplFixedArray throws exception when using ref variable as index)
--FILE--
<?php

$list = new SplFixedArray(10);
$ndx = 1;
$ndx2 =& $ndx;
$list[$ndx] = 123;	// This throws an exception;
$list[$ndx2] = 123;	// as does this, to.
echo 'ok';

?>
--EXPECT--
ok