summaryrefslogtreecommitdiff
path: root/ext/spl/tests/fixedarray_004.phpt
blob: cb62e0c2c9afb8d266609da59b3dbf23f54e6daf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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===