From: Georg Richter Date: Sat, 11 Mar 2006 11:16:03 +0000 (+0000) Subject: fix for MySQL 5.1 (see http://bugs.mysql.com/?id=16144) X-Git-Tag: php-5.1.3RC2~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e13e2fe9ba4a64732969652dc1ede9475f6c7c41;p=php fix for MySQL 5.1 (see http://bugs.mysql.com/?id=16144) --- diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index d8a9b5093a..eec7a67b85 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -326,7 +326,12 @@ PHP_FUNCTION(mysqli_stmt_bind_result) case MYSQL_TYPE_NEWDECIMAL: #endif { +#if VERSION_ID > 50999 + /* Changed to my_bool in MySQL 5.1. See MySQL Bug #16144 */ + my_bool tmp; +#else ulong tmp; +#endif stmt->result.buf[ofs].type = IS_STRING; /* If the user has called $stmt->store_result() then we have asked @@ -1822,7 +1827,7 @@ PHP_FUNCTION(mysqli_stmt_attr_get) { MY_STMT *stmt; zval *mysql_stmt; - ulong value; + ulong value = 0; ulong attr; int rc;