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