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