1--TEST--
2mb_parse_str() error handling
3--EXTENSIONS--
4mbstring
5--FILE--
6<?php
7mb_internal_encoding('UTF-8');
8
9$queries = array(
10  "\x80\x80\x80",
11  "\xFF=\xFF"
12);
13
14foreach ($queries as $query) {
15  echo "Query: " . bin2hex($query) . "\n";
16
17  $array = [];
18  mb_parse_str($query, $array);
19
20  foreach ($array as $key => $value) {
21    echo bin2hex($key) . "=>" . bin2hex($value) . "\n";
22  }
23}
24
25?>
26--EXPECT--
27Query: 808080
283f3f3f=>
29Query: ff3dff
303f=>3f
31