xref: /PHP-7.3/Zend/tests/033.phpt (revision b746e698)
1--TEST--
2Using undefined multidimensional array
3--FILE--
4<?php
5
6$arr[1][2][3][4][5];
7
8echo $arr[1][2][3][4][5];
9
10$arr[1][2][3][4][5]->foo;
11
12$arr[1][2][3][4][5]->foo = 1;
13
14$arr[][] = 2;
15
16$arr[][]->bar = 2;
17
18?>
19--EXPECTF--
20Notice: Undefined variable: arr in %s on line %d
21
22Notice: Undefined variable: arr in %s on line %d
23
24Notice: Undefined variable: arr in %s on line %d
25
26Notice: Trying to get property 'foo' of non-object in %s on line %d
27
28Warning: Creating default object from empty value in %s on line %d
29
30Warning: Creating default object from empty value in %s on line %d
31