[GIT-PULLS] [php-src] PR #23349: Stop grapheme_str_split from using UBRK_DONE as a byte index
[email protected] (iliaal)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <[email protected]> |
Pull Request: https://github.com/php/php-src/pull/23349 Author: iliaal When the last grapheme_str_split() group is short, ubrk_next() returns UBRK_DONE and the loop still advanced pstr by -1 - current. Skip that update when the iterator is done, matching the grapheme_strrev() fix.