mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
16 lines
223 B
PHP
16 lines
223 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
|