Re: [RFC] Updated: PHP 8.6 ValueError Conversions
| From: | Ayesh Karunaratne | Date: | Fri, 20 Feb 2026 19:42:26 +0000 |
| Subject: | Re: [RFC] Updated: PHP 8.6 ValueError Conversions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130113@lists.php.net to get a copy of this message | ||
>
> Based on internal feedback, I have restructured the RFC to follow the deprecations RFC format,
> with separate sections for each proposal.
>
> RFC: https://wiki.php.net/rfc/php86_valueerror_conversions
>
> Feedback is very welcome.
>
Thank you for your work on this RFC.
I have one more proposal if you'd like to group them together.
The
$message_type parameter of the error_log function[^1] is also
not validated. Values 1, 3, and 4 are handled, with 2 throwing a
ValueError. The default value is 0, but it also accepts any other
integer value. Further, calling error_log('', 42) returns true,
which also hides that the $message_type value is invalid.
[^1]: https://www.php.net/manual/en/function.error-log.php