[PHP-DEV] [RFC] Throw ValueError for invalid characters in number base functions
"Sjoerd Langkemper" <[email protected]>
| Newsgroups | gmane.comp.php.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
Next Friday I'll open the vote for the RFC for Throw ValueError for invalid characters in number base functions.
RFC: https://wiki.php.net/rfc/throw_error_for_invalid_characters_for_number_base
Earlier RFCs:
* https://wiki.php.net/rfc/php86_valueerror_conversions#throw_error_for_invalid_characters_for_number_base
* https://wiki.php.net/rfc/base_convert_improvements
Earlier discussions:
* https://news-web.php.net/php.internals/131448
* https://news-web.php.net/php.internals/104618
* https://news-web.php.net/php.internals/105740
PR: https://github.com/php/php-src/pull/22365
This will throw an error for octdec, hexdec, bindec and base_convert on invalid input. We already agreed to this before (in RFC base_convert changes), so this RFC is not really controversial but more about following the right procedure.
Regards,
Sjoerd Langkemper