1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/spl/tests/fixedarray_014.phpt
2020-02-03 22:52:20 +01:00

16 lines
232 B
PHP

--TEST--
SPL: FixedArray: Trying to access inexistent item
--FILE--
<?php
try {
$a = new SplFixedArray(NULL);
echo $a[0]++;
} catch (Exception $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Index invalid or out of range