mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
16 lines
276 B
PHP
16 lines
276 B
PHP
--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
|