mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
16 lines
277 B
PHP
16 lines
277 B
PHP
--TEST--
|
|
SPL: FixedArray: Trying to access inexistent item
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
$a = new SplFixedArray(0);
|
|
echo $a[0]++;
|
|
} catch (Exception $e) {
|
|
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
OutOfBoundsException: Index invalid or out of range
|