Bug #81437 [Opn]: mb_strtchr cutting differently on php 8.1
Edit report at https://bugs.php.net/bug.php?id=81437&edit=1
ID: 81437
Updated by: nicolasgrekas@php.net
Reported by: nicolasgrekas@php.net
Summary: mb_strtchr cutting differently on php 8.1
Status: Open
Type: Bug
Package: *General Issues
PHP Version: 8.1.0RC1
Block user comment: N
Private report: N
New Comment:
It could return false, but that's not the historical behavior apparently :)
Previous Comments:
------------------------------------------------------------------------
[2021-09-14 13:34:47] cmb@php.net
Shouldn't that return false, since neither haystack not needle are
ASCII encoded?
------------------------------------------------------------------------
[2021-09-14 13:22:47] nicolasgrekas@php.net
Description:
------------
echo mb_strrchr('déjà déjà ', 'é', false, 'ASCII');
echoes "à " on 8.1 but echoes "éjà " on previous versions.
See https://3v4l.org/jujrP
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81437&edit=1
Thread (6 messages)