xref: /PHP-8.3/ext/spl/tests/bug70853.phpt (revision e4ac4e75)
1--TEST--
2Bug #70853 (SplFixedArray throws exception when using ref variable as index)
3--FILE--
4<?php
5
6$list = new SplFixedArray(10);
7$ndx = 1;
8$ndx2 =& $ndx;
9$list[$ndx] = 123;	// This throws an exception;
10$list[$ndx2] = 123;	// as does this, to.
11echo 'ok';
12
13?>
14--EXPECT--
15ok
16