summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-06-19 16:08:45 +0800
committerXinchen Hui <laruence@php.net>2014-06-19 16:08:45 +0800
commite0680cb170ba022ee0b54b33ea36bbb67e79618d (patch)
tree5a807c030c08a26c87b3bcc30337b5a75f3251dc
parentf81498c8c868ef88a652649c1bd608f8898a3cac (diff)
downloadphp-git-e0680cb170ba022ee0b54b33ea36bbb67e79618d.tar.gz
Fixed reference handling of bind_result
-rw-r--r--ext/mysqlnd/mysqlnd_ps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqlnd/mysqlnd_ps.c b/ext/mysqlnd/mysqlnd_ps.c
index 4019aabec0..b114296130 100644
--- a/ext/mysqlnd/mysqlnd_ps.c
+++ b/ext/mysqlnd/mysqlnd_ps.c
@@ -1183,8 +1183,8 @@ MYSQLND_METHOD(mysqlnd_stmt, fetch)(MYSQLND_STMT * const s, zend_bool * const fe
*/
for (i = 0; i < stmt->result->field_count; i++) {
if (stmt->result_bind[i].bound == TRUE) {
- zval_dtor(&stmt->result_bind[i].zv);
- ZVAL_NULL(&stmt->result_bind[i].zv);
+ zval_dtor(Z_REFVAL(stmt->result_bind[i].zv));
+ ZVAL_NULL(Z_REFVAL(stmt->result_bind[i].zv));
}
}
stmt->result_zvals_separated_once = TRUE;