[php-src] PR #24012: ext/intl: Fix grapheme_strstr() and grapheme_stristr() match offsets …
| From: | LamentXU123 | Date: | Wed, 30 Sep 2026 09:42:51 +0000 |
| Subject: | [php-src] PR #24012: ext/intl: Fix grapheme_strstr() and grapheme_stristr() match offsets … | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38973@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/24012
Author: LamentXU123
…after supplementary characters
```php
<?php
$s = "\u{1F600}abc"; // 😀abc
var_dump(grapheme_strstr($s, 'a'));
// now return: "bc"; should return: "abc"
var_dump(grapheme_strstr($s, 'a', true));
// now return: "😀a"; should return: "😀"
```
Same stuff also happens on grapheme_stristr