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

17 lines
228 B
PHP

--TEST--
SPL: FixedArray: adding new elements
--FILE--
<?php
$a = new SplFixedArray(10);
try {
$a[] = 1;
} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
--EXPECT--
string(29) "Index invalid or out of range"