blob: 26203c4e2e9a28816a862b3f76bc6850f865aea3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--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
|