You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mb_convert_kana does not work on HK combination in PHP8.2.26 #17141
The code below works fine on older version(PHP 8.1.13, 8.0.30, 7.4.33), but returns Fatal error: Uncaught ValueError: mb_convert_kana(): Argument #2 ($mode) must not combine 'H' and 'K' flags in PHP 8.2.26.
// for PHP 8.1.13, 8.0.30, 7.4.33
カタカナ ロマンチ 123
// for PHP 8.2.26
Fatal error: Uncaught ValueError: mb_convert_kana(): Argument #2 ($mode) must not combine 'H' and 'K' flag
But I expected this output instead:
// for PHP 8.1.13, 8.0.30, 7.4.33
カタカナ ロマンチ 123
// for PHP 8.2.26
カタカナ ロマンチ 123
Activity
SakiTakamachi commentedon Dec 13, 2024
@cjayalmontecm
See the changelog.
https://www.php.net/manual/en/function.mb-convert-kana.php
This is correct since
HandKare flags for different operating modes.cjayalmontecm commentedon Dec 13, 2024
Hello @SakiTakamachi, I just saw this also #10174 (comment) ..
Thank you.
[-]mb_convert_kana is broken in PHP8.2.26[/-][+]mb_convert_kana does not work on HK combination in PHP8.2.26[/+]