From: Ilia Alshanetsky Date: Sun, 4 Jun 2006 14:56:34 +0000 (+0000) Subject: Fixed bug #37671 (MySQLi extension fails to recognize BIT column). X-Git-Tag: php-5.2.0RC1~376 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63a658ee7a58f4b504f2afaf50da1fa9ca3f08b2;p=php Fixed bug #37671 (MySQLi extension fails to recognize BIT column). --- diff --git a/NEWS b/NEWS index 49d6fd5bab..bd526de4d5 100644 --- a/NEWS +++ b/NEWS @@ -49,6 +49,7 @@ PHP NEWS - Added RFC2397 (data: stream) support. (Marcus) - Fixed memory leaks in openssl streams context options (Pierre) - Fixed handling of extremely long paths inside tempnam() function. (Ilia) +- Fixed bug #37671 (MySQLi extension fails to recognize BIT column). (Ilia) - Fixed bug #37635 (parameter of pcntl signal handler is trashed). (Mike) - Fixed bug #37632 (Protected method access problem). (Marcus) - Fixed bug #37630 (MySQL extensions should link against thread safe client diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index b409e56b51..51d219a323 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -294,6 +294,9 @@ PHP_FUNCTION(mysqli_stmt_bind_result) case MYSQL_TYPE_LONG: case MYSQL_TYPE_INT24: case MYSQL_TYPE_YEAR: +#if MYSQL_VERSION_ID > 50002 + case MYSQL_TYPE_BIT: +#endif convert_to_long_ex(args[i]); stmt->result.buf[ofs].type = IS_LONG; /* don't set stmt->result.buf[ofs].buflen to 0, we used ecalloc */