--TEST-- testing the behavior of string offsets --FILE-- --EXPECTF-- string(1) "B" string(1) "f" string(1) "o" bool(true) bool(true) Warning: Illegal string offset "foo" in %s on line %d string(1) "f" bool(false)