Re: Re: [RFC] Add parse_query_string as an alternative to parse_str

From: Date: Wed, 18 Aug 2021 13:27:49 +0000
Subject: Re: Re: [RFC] Add parse_query_string as an alternative to parse_str
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-115763@lists.php.net to get a copy of this message
Hi Internals, During my research into this topic, I discovered that there exists a multibyte variant of this function in mbstring extension. This raises the question: should we add a corresponding multibyte variant of http_parse_query() to mbstring? Is there any usage in the wild of mb_parse_str()? I have even asked a question on Stack Overflow about this topic https://stackoverflow.com/questions/68761695/can-mb-parse-str-produce-different-results-than-parse-str To me, it doesn't look like parse_str() is useful anymore, but I come from Europe where things happen mostly using a single encoding. I am not aware of any problems that parse_str() might have when it comes to multiple encoding types. In fact, when looking at the whole input/output encoding feature of mbstring I am getting a feeling that this is some niche feature that almost nobody ever uses. While mbstring is useful for dealing with different encodings, I am not sure if it is common for HTTP requests to be encoded with anything else than UTF-8. I would appreciate some input from experts who know more about mbstring and encodings. Regards, Kamil >

« previous php.internals (#115763) next »