xref: /PHP-5.5/ext/spl/tests/array_026.phpt (revision 0d7d9b05)
1--TEST--
2SPL: ArrayObject indirect offsetGet overwriting EG(uninitialized_zvar_ptr)
3--FILE--
4<?php
5$test = new ArrayObject();
6$test['d1']['d2'] = 'hello';
7$test['d1']['d3'] = 'world';
8var_dump($test, $test3['mmmmm']);
9?>
10--EXPECTF--
11Notice: Undefined variable: test3 in %s%earray_026.php on line %d
12object(ArrayObject)#%d (1) {
13  ["storage":"ArrayObject":private]=>
14  array(1) {
15    ["d1"]=>
16    array(2) {
17      ["d2"]=>
18      string(5) "hello"
19      ["d3"]=>
20      string(5) "world"
21    }
22  }
23}
24NULL
25