File php-5.1.2-phpbug-16144.patch of Package php
--- ext/mysqli/mysqli_api.c 2006/01/01 16:55:01 1.118.2.16
+++ ext/mysqli/mysqli_api.c 2006/03/11 11:16:03 1.118.2.17
@@ -15,7 +15,7 @@
| Author: Georg Richter <georg@php.net> |
+----------------------------------------------------------------------+
- $Id: mysqli_api.c,v 1.118.2.16 2006/01/01 16:55:01 andrey Exp $
+ $Id: mysqli_api.c,v 1.118.2.17 2006/03/11 11:16:03 georg Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -326,7 +326,12 @@
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 @@
{
MY_STMT *stmt;
zval *mysql_stmt;
- ulong value;
+ ulong value = 0;
ulong attr;
int rc;