blob: 8641821ae31404e0a7ef860860390fd3c9729550 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--TEST--
SPL: FixedArray: Assigning objects
--FILE--
<?php
$b = 10000;
$a = new SplFixedArray($b);
try {
for ($i = 0; $i < 100; $i++) {
$a[] = new stdClass;
}
} catch (Exception $e) {
echo $e->getMessage(), "\n";
}
print "ok\n";
?>
--EXPECT--
Index invalid or out of range
ok
|