mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
fix void* ptr arithmetic
This commit is contained in:
parent
dc4a39ca9c
commit
19f6476d19
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *
|
|||
|
||||
if (stmt->bound_param_map && (namevar = zend_hash_find(stmt->bound_param_map,
|
||||
param->name)) != NULL) {
|
||||
param->paramno = atoi(Z_PTR_P(namevar) + 1) - 1;
|
||||
param->paramno = atoi(((zend_string*)Z_PTR_P(namevar))->val + 1) - 1;
|
||||
} else {
|
||||
pdo_raise_impl_error(stmt->dbh, stmt, "HY093", param->name->val TSRMLS_CC);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue