php-src/ext/spl/tests/fixedarray_014.phpt

16 lines
223 B
Plaintext
Raw Normal View History

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