summaryrefslogtreecommitdiff
path: root/ext/spl/tests/fixedarray_013.phpt
blob: cf43b3c7e773cbb0d2b30afc7374e049b83108e9 (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