?? Feb 2004, Version 4.3.5
- Fixed possible crashes inside socket extension, due to missing check inside
allocation functions. (Ilia)
+- Fixed bug #27505 (htmlentities() does not handle BIG5 correctly). (Ilia,
+ ywliu at hotmail dot com)
- Fixed bug #27443 (defined() returns wrong type). (Derick)
- Fixed bug #27437 (wrong freetype include inside GD library). (Ilia)
- Fixed bug #27384 (unpack() misbehaves with 1 char string). (GeorgeS)
case cs_big5hkscs:
{
/* check if this is the first of a 2-byte sequence */
- if (this_char >= 0xa1 && this_char <= 0xf9) {
+ if (this_char >= 0xa1 && this_char <= 0xfe) {
/* peek at the next char */
unsigned char next_char = str[pos];
- if ((next_char >= 0x40 && next_char <= 0x73) ||
+ if ((next_char >= 0x40 && next_char <= 0x7e) ||
(next_char >= 0xa1 && next_char <= 0xfe)) {
/* yes, this a wide char */
this_char <<= 8;