Annotation of embedaddon/php/tests/strings/offsets_chaining_5.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: testing the behavior of string offset chaining
                      3: --INI--
                      4: error_reporting=E_ALL | E_DEPRECATED
                      5: --FILE--
                      6: <?php
                      7: $array = array('expected_array' => "foobar");
                      8: var_dump(isset($array['expected_array']));
                      9: var_dump($array['expected_array']);
                     10: var_dump(isset($array['expected_array']['foo']));
                     11: var_dump($array['expected_array']['foo']);
                     12: var_dump(isset($array['expected_array']['foo']['bar']));
                     13: var_dump($array['expected_array']['foo']['bar']);
                     14: ?>
                     15: --EXPECTF--
                     16: bool(true)
                     17: string(6) "foobar"
                     18: bool(true)
                     19: string(1) "f"
                     20: bool(false)
                     21: 
                     22: Fatal error: Cannot use string offset as an array in %s on line %d
                     23: 

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