]> git.pld-linux.org Git - packages/php.git/commitdiff
- latest mysql 5.1.20 no longer defines type gptr
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 15 Jul 2007 17:50:28 +0000 (17:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-mysql.patch -> 1.1

php-mysql.patch [new file with mode: 0644]

diff --git a/php-mysql.patch b/php-mysql.patch
new file mode 100644 (file)
index 0000000..073b260
--- /dev/null
@@ -0,0 +1,32 @@
+--- php-5.2.3/ext/mysqli/mysqli_api.c.org      2007-07-15 19:43:05.561310037 +0200
++++ php-5.2.3/ext/mysqli/mysqli_api.c  2007-07-15 19:43:20.862032668 +0200
+@@ -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 = (char *)&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 = (char *)&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 = (char *)&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 = (char *)&Z_LVAL_PP(&stmt->param.vars[i]);
+                                               break;
+                                       default:
+                                               break;
This page took 0.051291 seconds and 4 git commands to generate.