[RFC] base_convert should throw a ValueError on characters not valid in number base
| From: | Sjoerd Langkemper | Date: | Fri, 14 Aug 2026 10:13:26 +0000 |
| Subject: | [RFC] base_convert should throw a ValueError on characters not valid in number base | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-132219@lists.php.net to get a copy of this message | ||
On Mon, Jun 22, 2026, at 11:21, Sjoerd Langkemper wrote:
> I propose to throw a ValueError for invalid characters ... This applies to bindec, octdec,
> hexdec, and base_convert.
I created a new RFC for this: https://wiki.php.net/rfc/throw_error_for_invalid_characters_for_number_base
It was originally in the "Grouped ValueError Conversions for PHP 8.6" RFC, but that
wasn't voted on in time.
Regards,
Sjoerd