mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
19 lines
245 B
PHP
19 lines
245 B
PHP
--TEST--
|
|
SPL: FixedArray: adding new elements
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = new SplFixedArray(10);
|
|
|
|
try {
|
|
$a[] = 1;
|
|
} catch (Exception $e) {
|
|
var_dump($e->getMessage());
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
string(29) "Index invalid or out of range"
|
|
===DONE===
|