[php-src] Issue #19361: Weird behavior of `grapheme_stripos()` with grapheme `\u{34F}`

From: Date: Mon, 04 Aug 2025 07:23:14 +0000
Subject: [php-src] Issue #19361: Weird behavior of `grapheme_stripos()` with grapheme `\u{34F}`
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-250554@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/19361 Author: nikophil ### Description The grapheme \u{34F} has a weird behavior with grapheme_stripos(): ```php <?php var_dump(grapheme_stripos("abcdef", "\u{34F}")); var_dump(grapheme_stripos("abc\u{34F}def", "\u{34F}")); ``` Resulted in this output: ``` int(0) int(0) ``` But I expected this output instead: ``` bool(false) int(3) ``` Note that on the other hand the following code works as expected: ```php echo "abc\u{34F}def\n"; // "abcdef" echo grapheme_strlen("abc\u{34F}def"); // "6" ``` see https://3v4l.org/vRVCR/rfc#vgit.master ### PHP Version ```plain used git.master in 3v4l.org ``` ### Operating System _No response_

« previous php.bugs (#250554) next »