-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
ValueError: mb_detect_encoding(): Argument #2 ($encodings) contains invalid encoding "UTF8" #15824
Comments
Not sure when or why this has been changed, but using |
Hmm. Seems could not catch at
|
php-src/ext/mbstring/libmbfl/mbfl/mbfl_encoding.c Lines 369 to 378 in 3ad422e
However, |
The problem is simply that the loops below should use strncasecmp to take into account the length. Will fix this evening. |
I fixed from strcasecmp to strncasecmp. However, strncasecmp is specify size to php#3 parameter. Hence, Add check strlen to imap and aliases.
I fixed from strcasecmp to strncasecmp. However, strncasecmp is specify size to php#3 parameter. Hence, Add check strlen to mime and aliases.
I fixed from strcasecmp to strncasecmp. However, strncasecmp is specify size to php#3 parameter. Hence, Add check length to mime and aliases. Co-authored-by: Niels Dossche <[email protected]>
I fixed from strcasecmp to strncasecmp. However, strncasecmp is specify size to php#3 parameter. Hence, Add check length to mime and aliases. Co-authored-by: Niels Dossche <[email protected]>
I fixed from strcasecmp to strncasecmp. However, strncasecmp is specify size to #3 parameter. Hence, Add check length to mime and aliases. Co-authored-by: Niels Dossche <[email protected]>
Co-authored-by: Niels Dossche <[email protected]>
Description
The following code: https://3v4l.org/3cnGD/rfc#vgit.master
Resulted in this output:
But I expected this output instead:
This is a regression, see https://3v4l.org/3cnGD
And this works if the list is given as an array: https://3v4l.org/lVva0/rfc#vgit.master
PHP Version
PHP 8.4
Operating System
No response
The text was updated successfully, but these errors were encountered: