xref: /PHP-8.3/ext/spl/tests/fixedarray_006.phpt (revision e9e06279)
1--TEST--
2SPL: FixedArray: Assigning objects
3--FILE--
4<?php
5
6$b = 10000;
7$a = new SplFixedArray($b);
8
9try {
10    for ($i = 0; $i < 100; $i++) {
11        $a[] = new stdClass;
12    }
13} catch (Error $e) {
14    echo $e->getMessage(), "\n";
15}
16
17print "ok\n";
18
19?>
20--EXPECT--
21[] operator not supported for SplFixedArray
22ok
23