1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/spl/tests/fixedarray_004.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02: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"