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