diff options
| author | Andrey Hristov <andrey@php.net> | 2007-07-24 09:22:16 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2007-07-24 09:22:16 +0000 |
| commit | 38ae7f47c0e5e85a67ecc064c4acec49da0ad32b (patch) | |
| tree | 45e3b078418181055579934a85bd6f1ad7c7e4ac /ext/mysqli | |
| parent | db97db94306409ce0860f82ab7dbc83b336e8cda (diff) | |
| download | php-git-38ae7f47c0e5e85a67ecc064c4acec49da0ad32b.tar.gz | |
Fix build with latest 5.1 sources where gptr is no more.
Diffstat (limited to 'ext/mysqli')
| -rw-r--r-- | ext/mysqli/mysqli_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index 66784bea83..885a8e7909 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -141,13 +141,13 @@ PHP_FUNCTION(mysqli_stmt_bind_param) 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 @@ PHP_FUNCTION(mysqli_stmt_execute) 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; |
