]> git.pld-linux.org Git - packages/php.git/blob - php-mysql.patch
- update to 5.2.4,
[packages/php.git] / php-mysql.patch
1 --- php-5.2.3/ext/mysqli/mysqli_api.c.org       2007-07-15 19:43:05.561310037 +0200
2 +++ php-5.2.3/ext/mysqli/mysqli_api.c   2007-07-15 19:43:20.862032668 +0200
3 @@ -141,13 +141,13 @@
4                 switch (types[ofs]) {
5                         case 'd': /* Double */
6                                 bind[ofs].buffer_type = MYSQL_TYPE_DOUBLE;
7 -                               bind[ofs].buffer = (gptr)&Z_DVAL_PP(args[i]);
8 +                               bind[ofs].buffer = (char *)&Z_DVAL_PP(args[i]);
9                                 bind[ofs].is_null = &stmt->param.is_null[ofs];
10                                 break;
11  
12                         case 'i': /* Integer */
13                                 bind[ofs].buffer_type = MYSQL_TYPE_LONG;
14 -                               bind[ofs].buffer = (gptr)&Z_LVAL_PP(args[i]);
15 +                               bind[ofs].buffer = (char *)&Z_LVAL_PP(args[i]);
16                                 bind[ofs].is_null = &stmt->param.is_null[ofs];
17                                 break;
18  
19 @@ -600,11 +600,11 @@
20                                                 break;
21                                         case MYSQL_TYPE_DOUBLE:
22                                                 convert_to_double_ex(&stmt->param.vars[i]);
23 -                                               stmt->stmt->params[i].buffer = (gptr)&Z_LVAL_PP(&stmt->param.vars[i]);
24 +                                               stmt->stmt->params[i].buffer = (char *)&Z_LVAL_PP(&stmt->param.vars[i]);
25                                                 break;
26                                         case MYSQL_TYPE_LONG:
27                                                 convert_to_long_ex(&stmt->param.vars[i]);
28 -                                               stmt->stmt->params[i].buffer = (gptr)&Z_LVAL_PP(&stmt->param.vars[i]);
29 +                                               stmt->stmt->params[i].buffer = (char *)&Z_LVAL_PP(&stmt->param.vars[i]);
30                                                 break;
31                                         default:
32                                                 break;
This page took 0.027879 seconds and 3 git commands to generate.