1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/spl/tests/bug64106.phpt

18 lines
364 B
PHP

--TEST--
Bug #64106: Segfault on SplFixedArray[][x] = y when extended
--FILE--
<?php
class MyFixedArray extends SplFixedArray {
public function offsetGet($offset) { var_dump($offset); }
}
$array = new MyFixedArray(10);
$array[][1] = 10;
?>
--EXPECTF--
NULL
Notice: Indirect modification of overloaded element of MyFixedArray has no effect in %s on line %d