Skip to content

Commit 67ce1d8

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix incorrect charset length in check_mb_eucjpms()
2 parents 2b79173 + 8ffac99 commit 67ce1d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ PHP NEWS
2626

2727
- MySQLnd:
2828
. Fix GH-13452 (Fixed handshake response [mysqlnd]). (Saki Takamachi)
29+
. Fix incorrect charset length in check_mb_eucjpms(). (nielsdos)
2930

3031
- Opcache:
3132
. Fixed GH-13508 (JITed QM_ASSIGN may be optimized out when op1 is null).

ext/mysqlnd/mysqlnd_charset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ static unsigned int check_mb_eucjpms(const char * const start, const char * cons
270270
}
271271
if (valid_eucjpms_ss3(start[0]) && (end - start) > 2 && valid_eucjpms(start[1]) &&
272272
valid_eucjpms(start[2])) {
273-
return 2;
273+
return 3;
274274
}
275275
return 0;
276276
}

0 commit comments

Comments
 (0)