go to bug id or search bugs for
From manual page: http://www.php.net/function.parse-str
The manual does not mention how invalid input (and what is considered as such) will be handled.
As this is probably the only method which can be used to manually parse DELETE or PUT body, I would expect people to use this function in low level code, where it is crucial to know what to expect.
Will it throw exception? Will it set $arr to null? Will it set it to false? Or empty array? Will it simply ignore invalid parts? Will it emit E_WARNING or E_ERROR? What if max_input_vars will be exceeded? What about wrong UTF-8 sequences? How about trailing &, or %?
Btw. why don't you provide $_DELETE and $_PUT arrays is a mystery to me.
Add a Patch
Add a Pull Request