1--TEST--
2ArrayObject illegal offset
3--FILE--
4<?php
5
6$ao = new ArrayObject([1, 2, 3]);
7try {
8    var_dump($ao[[]]);
9} catch (TypeError $e) {
10    echo $e->getMessage(), "\n";
11}
12try {
13    $ao[[]] = new stdClass;
14} catch (TypeError $e) {
15    echo $e->getMessage(), "\n";
16}
17try {
18    $ref =& $ao[[]];
19} catch (TypeError $e) {
20    echo $e->getMessage(), "\n";
21}
22try {
23    var_dump(isset($ao[[]]));
24} catch (TypeError $e) {
25    echo $e->getMessage(), "\n";
26}
27try {
28    unset($ao[[]]);
29} catch (TypeError $e) {
30    echo $e->getMessage(), "\n";
31}
32
33?>
34--EXPECT--
35Illegal offset type
36Illegal offset type
37Illegal offset type
38Illegal offset type in isset or empty
39Illegal offset type in unset
40