blob: 52ae3c161ec394bcd3065ae6e7c25b006f964b26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--TEST--
SPL: FixedArray: Passing the object using [] as parameter
--FILE--
<?php
$a = new SplFixedArray(100);
function test(SplFixedArray &$arr) {
print "ok\n";
}
try {
test($a[]);
} catch (Exception $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Index invalid or out of range
|