xref: /PHP-7.1/ext/spl/tests/fixedarray_014.phpt (revision 0f5ddaf4)
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