mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix for bug 54674..typo in the check of SJIS
This commit is contained in:
parent
410a781063
commit
d4ae5bd995
2 changed files with 33 additions and 4 deletions
|
@ -327,10 +327,8 @@ static unsigned int mysqlnd_mbcharlen_gbk(unsigned int gbk)
|
|||
|
||||
|
||||
/* {{{ sjis functions */
|
||||
#define valid_sjis_head(c) ((0x81 <= (c) && (c) <= 0x9F) && \
|
||||
(0xE0 <= (c) && (c) <= 0xFC))
|
||||
#define valid_sjis_tail(c) ((0x40 <= (c) && (c) <= 0x7E) && \
|
||||
(0x80 <= (c) && (c) <= 0x7C))
|
||||
#define valid_sjis_head(c) ((0x81 <= (c) && (c) <= 0x9F) || (0xE0 <= (c) && (c) <= 0xFC))
|
||||
#define valid_sjis_tail(c) ((0x40 <= (c) && (c) <= 0x7E) || (0x80 <= (c) && (c) <= 0x7C))
|
||||
|
||||
|
||||
static unsigned int check_mb_sjis(const char *start, const char *end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue