--TEST-- testing the behavior of string offsets --INI-- error_reporting=E_ALL | E_DEPRECATED --FILE-- --EXPECTF-- string(1) "f" string(1) "o" bool(true) bool(true) Warning: Illegal string offset 'foo' in %s line %d string(1) "f" bool(false) string(1) "f" string(1) "o" bool(true) bool(true) Warning: Illegal string offset 'foo' in %s line %d string(1) "f" bool(false)