mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
17 lines
228 B
PHP
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"
|