bool TestExtMb::test_mb_parse_str() { Variant output; f_mb_parse_str("first=value&arr[]=foo+bar&arr[]=baz", ref(output)); VS(output["first"], "value"); VS(output["arr[]"], "baz"); // bug in mb_parse_str not following PHP's return Count(true); }
bool TestExtMb::test_mb_parse_str() { static const StaticString s_first("first"), s_arr("arr[]"); Variant output; f_mb_parse_str("first=value&arr[]=foo+bar&arr[]=baz", ref(output)); VS(output[s_first], "value"); VS(output[s_arr], "baz"); // bug in mb_parse_str not following PHP's return Count(true); }