xref: /php-src/ext/spl/tests/gh17198.phpt (revision 5f13c62c)
1--TEST--
2GH-17198 (SplFixedArray assertion failure with get_object_vars)
3--FILE--
4<?php
5#[AllowDynamicProperties]
6class MySplFixedArray extends SplFixedArray {
7}
8$array = new MySplFixedArray(2);
9$array->{0} = [];
10var_dump(get_object_vars($array));
11?>
12--EXPECT--
13array(1) {
14  [0]=>
15  array(0) {
16  }
17}
18