Re: Proposal: Support for RFC4648 in PHP
| From: | Ayesh Karunaratne | Date: | Thu, 12 Jun 2025 17:35:08 +0000 |
| Subject: | Re: Proposal: Support for RFC4648 in PHP | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127658@lists.php.net to get a copy of this message | ||
>
> Why do it in core?
> Is userland base16/base32 performance unsatisfactory?
Even if the performance is satisfactory, having this in core can help
user-land code to get rid of their own implementations (which they
often do, to be URL-safe, for example).
I imagine native implementations can make use of CPU SIMD acceleration
as well, like we already do for the current base64 functions.
The initial message also mentions adding this functionality into a
separate namespace, so I'm quite positive with this proposal. Even
more so than the previous proposals that proposed to add new
parameters to the base64 functions.