1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 12:13:02 +02:00

Fixed reference handling of bind_result

This commit is contained in:
Xinchen Hui
2014-06-19 16:08:45 +08:00
parent f81498c8c8
commit e0680cb170

View File

@@ -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;