diff options
author | Georg Richter <georg@php.net> | 2006-03-11 11:16:03 +0000 |
---|---|---|
committer | Georg Richter <georg@php.net> | 2006-03-11 11:16:03 +0000 |
commit | e13e2fe9ba4a64732969652dc1ede9475f6c7c41 (patch) | |
tree | d7539e57c530ee8e955e06c49e039d2710939cd7 /ext/mysqli | |
parent | 79a968b21e7f3c4f8d04c6d07c36a6ee574ca3af (diff) | |
download | php-git-e13e2fe9ba4a64732969652dc1ede9475f6c7c41.tar.gz |
fix for MySQL 5.1 (see http://bugs.mysql.com/?id=16144)
Diffstat (limited to 'ext/mysqli')
-rw-r--r-- | ext/mysqli/mysqli_api.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |