xref: /PHP-5.6/ext/spl/tests/fixedarray_012.phpt (revision 0f5ddaf4)
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 (Exception $e) {
11	echo $e->getMessage(), "\n";
12}
13
14print "ok\n";
15
16?>
17--EXPECT--
18Index invalid or out of range
19ok
20