[php-src] PR #13698: add PHP_BASE64_NO_PADDING option to base64_encode
| From: | remicollet | Date: | Wed, 13 Mar 2024 16:01:58 +0000 |
| Subject: | [php-src] PR #13698: add PHP_BASE64_NO_PADDING option to base64_encode | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25400@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13698
Author: remicollet
Make padding optional using
function base64_encode(string $string, int $flags = 0): string {}
Also add
PHPAPI extern zend_string *php_base64_encode_ex(const unsigned char *, size_t, zend_long
flags);
php_base64_encode is unchanged
Encoding without padding is needed for ARGON2 password, see PR #13635
this will allow to simplify code in ext/openssl