Re: RFC [Discussion]: Make unser ialize() emit a warning for trailing bytes
| From: | Mel Dafert | Date: | Mon, 27 Mar 2023 19:12:03 +0000 |
| Subject: | Re: RFC [Discussion]: Make unser ialize() emit a warning for trailing bytes | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-119747@lists.php.net to get a copy of this message | ||
On 27 March 2023 20:20:58 CEST, "Michał Marcin Brzuchalski"
<michal.brzuchalski@gmail.com> wrote:
> Personally, I'd like the unserialize to throw an exception if trailing
>bytes are detected.
>If not by default then with the use of the option passed to unserialize
>function.
If that's the desired direction, it makes more sense to emit a deprecation notice
now and throw an exception starting in 9.0.
Regards,
Mel Dafert