xref: /PHP-5.4/ext/spl/tests/bug64106.phpt (revision 321f4f18)
1--TEST--
2Bug #64106: Segfault on SplFixedArray[][x] = y when extended
3--FILE--
4<?php
5
6class MyFixedArray extends SplFixedArray {
7    public function offsetGet($offset) {}
8}
9
10$array = new MyFixedArray(10);
11$array[][1] = 10;
12
13?>
14--EXPECTF--
15Notice: Indirect modification of overloaded element of MyFixedArray has no effect in %s on line %d
16