summaryrefslogtreecommitdiff
path: root/ext/spl/tests/fixedarray_012.phpt
blob: 3461b3a9b5f720d30fc167cb1bd61ded80f8a1b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
SPL: FixedArray: Assigning the object to another variable using []
--FILE--
<?php

$a = new SplFixedArray(100);

try {
	$b = &$a[];
} catch (Exception $e) {
	echo $e->getMessage(), "\n";
}

print "ok\n";

?>
--EXPECT--
Index invalid or out of range
ok