Пример #1
0
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);
}
Пример #2
0
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);
}