-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mb_strlen returns 0 instead of 1 for the char chr(254) #415
Comments
Hi, I’ve found a trick by using utf8_encode, but it will deprecated with php 8.2. |
|
@alexchuin the issue is that |
Yes, I know, that’s why I didn’t wrote a PR. My point is maybe somerhing from ut8_encode source code is « portable » in this context to handle edge-cases like this. |
@yannouche34490 your code using |
Yes, we have to find a proper way to detect these cases. |
@yannouche34490 The issue here is that it looks like |
Hi,
With the polyfill,
var_dump(mb_strlen(chr(254)))
return0
.With the php8.0-mbstring extension, var_dump(mb_strlen(chr(254))) return
1
;versions : * v1.26.0
Thanks,
Alex
The text was updated successfully, but these errors were encountered: