summaryrefslogtreecommitdiff
path: root/ext/pdo
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-05-07 11:00:36 +0800
committerXinchen Hui <laruence@php.net>2014-05-07 11:00:36 +0800
commit2d0c9690de4ffecda7049a03841212a96295adf1 (patch)
tree9ad9d6d4b00194de42bce8246664cdc49ac881e6 /ext/pdo
parent4ecc52797650c882f3101edd7171007ac0d15ec7 (diff)
downloadphp-git-2d0c9690de4ffecda7049a03841212a96295adf1.tar.gz
Refactor pdo_mysql(incompleted, some tests failed due to no mysqlnd)
Diffstat (limited to 'ext/pdo')
-rw-r--r--ext/pdo/pdo_stmt.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
index a0a3a8b5fc..bb8a95eaff 100644
--- a/ext/pdo/pdo_stmt.c
+++ b/ext/pdo/pdo_stmt.c
@@ -404,13 +404,9 @@ static int really_register_bound_param(struct pdo_bound_param_data *param, pdo_s
/* allocate storage for the parameter, keyed by its "canonical" name */
if (param->name) {
- zval *zv;
- zv = zend_hash_update_mem(hash, param->name, param, sizeof(struct pdo_bound_param_data));
- pparam = Z_PTR_P(zv);
+ pparam = zend_hash_update_mem(hash, param->name, param, sizeof(struct pdo_bound_param_data));
} else {
- zval *zv;
- zv = zend_hash_index_update_mem(hash, param->paramno, param, sizeof(struct pdo_bound_param_data));
- pparam = Z_PTR_P(zv);
+ pparam = zend_hash_index_update_mem(hash, param->paramno, param, sizeof(struct pdo_bound_param_data));
}
/* tell the driver we just created a parameter */