[php-src] PR #23349: Stop grapheme_str_split from using UBRK_DONE as a byte index
| From: | iliaal | Date: | Tue, 18 Aug 2026 11:52:51 +0000 |
| Subject: | [php-src] PR #23349: Stop grapheme_str_split from using UBRK_DONE as a byte index | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37966@lists.php.net to get a copy of this message | ||
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.