xref: /PHP-5.4/Zend/tests/033.phpt (revision 6144da7e)
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--
20
21Notice: Undefined variable: arr in %s on line %d
22
23Notice: Undefined variable: arr in %s on line %d
24
25Notice: Undefined variable: arr in %s on line %d
26
27Notice: Trying to get property of non-object in %s on line %d
28
29Warning: Creating default object from empty value in %s on line %d
30
31Warning: Creating default object from empty value in %s on line %d
32