Annotation of embedaddon/php/Zend/tests/033.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Using undefined multidimensional array
                      3: --FILE--
                      4: <?php 
                      5: 
                      6: $arr[1][2][3][4][5];
                      7: 
                      8: echo $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: 
                     21: Notice: Undefined variable: arr in %s on line %d
                     22: 
                     23: Notice: Undefined variable: arr in %s on line %d
                     24: 
                     25: Notice: Undefined variable: arr in %s on line %d
                     26: 
                     27: Notice: Trying to get property of non-object in %s on line %d
                     28: 
1.1.1.2 ! misho      29: Warning: Creating default object from empty value in %s on line %d
1.1       misho      30: 
1.1.1.2 ! misho      31: Warning: Creating default object from empty value in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>