Bug #81390 [Csd]: mb_detect_encoding() regression
| From: | alexdowad@php.net | Date: | Sun, 17 Oct 2021 17:20:45 +0000 |
| Subject: | Bug #81390 [Csd]: mb_detect_encoding() regression | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-237244@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81390&edit=1
ID: 81390
Updated by: alexdowad@php.net
Reported by: alec at alec dot pl
Summary: mb_detect_encoding() regression
Status: Closed
Type: Bug
Package: mbstring related
PHP Version: 8.1.0beta3
Assigned To: alexdowad
Block user comment: N
Private report: N
New Comment:
Hi Alec,
The test case which you provided in the original bug report does appear to return good results now.
Looks like the bug fix had a good effect:
https://3v4l.org/UXtBd
Thank you for providing more test cases in which the latest implementation of mb_detect_encoding
does not return accurate results. Those will be added to the test suite for the PHP interpreter.
I have been working on another patch for mbstring which significantly enhances the accuracy of
legacy encoding detection. Several of the test cases you have added in this thread already return
the correct result with that new patch.
Once the next patch is merged, we would appreciate your further assistance with testing. If you are
able to build PHP from source, it would be even more helpful if you can test even before the next
rc. However, I understand that building a C program may seem daunting for some who have never done
that before, and it is work which you didn't sign up for.
Previous Comments:
------------------------------------------------------------------------
[2021-10-15 11:17:16] alec at alec dot pl
Another one:
https://3v4l.org/QK7q6
------------------------------------------------------------------------
[2021-10-15 09:46:43] alec at alec dot pl
Another case:
https://3v4l.org/ritGP
------------------------------------------------------------------------
[2021-10-15 07:47:28] alec at alec dot pl
I don't know what's going on, but I now have rc4 and this is still not fixed.
https://3v4l.org/lfM8J
https://3v4l.org/0enJ8
3v4l does not have rc4 yet, but it was supposed to be fixed in rc3. Looks it isn't.
------------------------------------------------------------------------
[2021-09-25 13:00:05] alec at alec dot pl
So, it will be rc3. Thank you.
------------------------------------------------------------------------
[2021-09-25 12:44:17] alexdowad@php.net
Hi, Alec. The fix is in commit c25a1ef8d0, which was merged a few days ago (around September 20). It
should be included in the next release in the 8.1 series. I'm not involved in cutting new
releases and don't know what the schedule for releases is.
Thanks again for reporting the bug.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=81390
--
Edit this bug report at https://bugs.php.net/bug.php?id=81390&edit=1