mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Fix incorrect charset length in check_mb_eucjpms()
Closes GH-13781.
This commit is contained in:
parent
09a36812c1
commit
8ffac997aa
1
NEWS
1
NEWS
@ -20,6 +20,7 @@ PHP NEWS
|
||||
|
||||
- MySQLnd:
|
||||
. Fix GH-13452 (Fixed handshake response [mysqlnd]). (Saki Takamachi)
|
||||
. Fix incorrect charset length in check_mb_eucjpms(). (nielsdos)
|
||||
|
||||
- Opcache:
|
||||
. Fixed GH-13508 (JITed QM_ASSIGN may be optimized out when op1 is null).
|
||||
|
@ -270,7 +270,7 @@ static unsigned int check_mb_eucjpms(const char * const start, const char * cons
|
||||
}
|
||||
if (valid_eucjpms_ss3(start[0]) && (end - start) > 2 && valid_eucjpms(start[1]) &&
|
||||
valid_eucjpms(start[2])) {
|
||||
return 2;
|
||||
return 3;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user