aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2007-07-12 08:58:48 +0000
committerAlex Dupre <ale@FreeBSD.org>2007-07-12 08:58:48 +0000
commitd1561507895851cbb49d429bb8602d0eda57f81d (patch)
tree3a136a73fcd7f8c995ec1f1d46b32c269098ed55
parent82ea113983a21eb1dc5e92d6479c411a7c8e0b3b (diff)
downloadports-d1561507895851cbb49d429bb8602d0eda57f81d.tar.gz
ports-d1561507895851cbb49d429bb8602d0eda57f81d.zip
Notes
-rw-r--r--databases/php5-mysqli/files/patch-mysqli_api.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/databases/php5-mysqli/files/patch-mysqli_api.c b/databases/php5-mysqli/files/patch-mysqli_api.c
new file mode 100644
index 000000000000..3a1d4d3abb02
--- /dev/null
+++ b/databases/php5-mysqli/files/patch-mysqli_api.c
@@ -0,0 +1,32 @@
+--- mysqli_api.c.orig Thu Jul 12 09:52:10 2007
++++ mysqli_api.c Thu Jul 12 09:52:24 2007
+@@ -141,13 +141,13 @@
+ switch (types[ofs]) {
+ case 'd': /* Double */
+ bind[ofs].buffer_type = MYSQL_TYPE_DOUBLE;
+- bind[ofs].buffer = (gptr)&Z_DVAL_PP(args[i]);
++ bind[ofs].buffer = (void*)&Z_DVAL_PP(args[i]);
+ bind[ofs].is_null = &stmt->param.is_null[ofs];
+ break;
+
+ case 'i': /* Integer */
+ bind[ofs].buffer_type = MYSQL_TYPE_LONG;
+- bind[ofs].buffer = (gptr)&Z_LVAL_PP(args[i]);
++ bind[ofs].buffer = (void*)&Z_LVAL_PP(args[i]);
+ bind[ofs].is_null = &stmt->param.is_null[ofs];
+ break;
+
+@@ -600,11 +600,11 @@
+ break;
+ case MYSQL_TYPE_DOUBLE:
+ convert_to_double_ex(&stmt->param.vars[i]);
+- stmt->stmt->params[i].buffer = (gptr)&Z_LVAL_PP(&stmt->param.vars[i]);
++ stmt->stmt->params[i].buffer = (void*)&Z_LVAL_PP(&stmt->param.vars[i]);
+ break;
+ case MYSQL_TYPE_LONG:
+ convert_to_long_ex(&stmt->param.vars[i]);
+- stmt->stmt->params[i].buffer = (gptr)&Z_LVAL_PP(&stmt->param.vars[i]);
++ stmt->stmt->params[i].buffer = (void*)&Z_LVAL_PP(&stmt->param.vars[i]);
+ break;
+ default:
+ break;