-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PHP 8.3] Polyfill mb_str_pad() #435
Conversation
fbad789
to
a70e0af
Compare
I'm sorry if I'm missing something documented elsewhere, but I wanted to ask if this should belong to Mbstring or Php83? Perhapas, before declaring polyfilled |
Good question - I wasn't sure because we don't check it for PHP 7.2 polyfill ( polyfill/src/Php74/bootstrap.php Lines 21 to 23 in 05dfdff
I guess we can add a check for |
the new function should be added in 2 places
|
PHP 7.2 and 7.1 don't seem to handle UTF-32 strings correctly when mbstring is missing 🤔 |
that's quite possible, let's skip these yes (or fix the polyfill, but nobody uses utf32 so 🤷 ) |
4a3c5fd
to
b90b63b
Compare
Thanks for the suggestion, @nicolas-grekas - I rebased this PR and skipped the tests for |
b90b63b
to
7ccd416
Compare
Thank you @IonBazan. |
Polyfills the
mb_str_pad()
function added in PHP 8.3: https://wiki.php.net/rfc/mb_str_padTest cases were taken from the RFC implementation and adapted to PHPUnit.