Fixed bug #37671 (MySQLi extension fails to recognize BIT column).

This commit is contained in:
Ilia Alshanetsky 2006-06-04 14:56:34 +00:00
parent ac2a29913c
commit 63a658ee7a
2 changed files with 4 additions and 0 deletions

1
NEWS
View File

@ -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

View File

@ -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 */