1--TEST--
2testing the behavior of string offset chaining
3--INI--
4error_reporting=E_ALL | E_DEPRECATED
5--FILE--
6<?php
7$array = array('expected_array' => "foobar");
8var_dump(isset($array['expected_array']));
9var_dump($array['expected_array']);
10var_dump(isset($array['expected_array']['foo']));
11var_dump($array['expected_array']['foo']);
12var_dump(isset($array['expected_array']['foo']['bar']));
13var_dump($array['expected_array']['foo']['bar']);
14?>
15--EXPECTF--
16bool(true)
17string(6) "foobar"
18bool(false)
19
20Warning: Illegal string offset 'foo' in %soffsets_chaining_5.php on line %d
21string(1) "f"
22bool(false)
23
24Warning: Illegal string offset 'foo' in %soffsets_chaining_5.php on line %d
25
26Warning: Illegal string offset 'bar' in %soffsets_chaining_5.php on line %d
27string(1) "f"
28