[RFC] Throw ValueError for invalid characters in number base functions

From: Date: Fri, 28 Aug 2026 08:24:20 +0000
Subject: [RFC] Throw ValueError for invalid characters in number base functions
Groups: php.internals 
Request: Send a blank email to internals+get-132379@lists.php.net to get a copy of this message
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

« previous php.internals (#132379) next »