xref: /php-src/ext/spl/tests/fixedarray_013.phpt (revision e9e06279)
1--TEST--
2SPL: FixedArray: Passing the object using [] as parameter
3--FILE--
4<?php
5
6$a = new SplFixedArray(100);
7
8
9function test(SplFixedArray &$arr) {
10    print "ok\n";
11}
12
13try {
14    test($a[]);
15} catch (\Error $e) {
16    echo $e->getMessage(), "\n";
17}
18
19?>
20--EXPECT--
21[] operator not supported for SplFixedArray
22