xref: /PHP-8.4/ext/spl/tests/bug53362.phpt (revision c6357b80)
1--TEST--
2Bug #53362 (Segmentation fault when extending SplFixedArray)
3--FILE--
4<?php
5
6class obj extends SplFixedArray{
7    public function offsetSet($offset, $value): void {
8        var_dump($offset);
9    }
10}
11
12$obj = new obj;
13
14$obj[]=2;
15$obj[]=2;
16$obj[]=2;
17
18?>
19--EXPECT--
20NULL
21NULL
22NULL
23