xref: /PHP-8.0/ext/spl/tests/fixedarray_014.phpt (revision f8d79582)
1--TEST--
2SPL: FixedArray: Trying to access inexistent item
3--FILE--
4<?php
5
6try {
7    $a = new SplFixedArray(NULL);
8    echo $a[0]++;
9} catch (Exception $e) {
10    echo $e->getMessage();
11}
12
13?>
14--EXPECT--
15Index invalid or out of range
16