com php-src: Fixed reference handling of bind_result: ext /mysqlnd/mysqlnd_ps.c

From: Date: Thu, 19 Jun 2014 08:08:45 +0000
Subject: com php-src: Fixed reference handling of bind_result: ext /mysqlnd/mysqlnd_ps.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78985@lists.php.net to get a copy of this message
Commit: e0680cb170ba022ee0b54b33ea36bbb67e79618d Author: Xinchen Hui <laruence@php.net> Thu, 19 Jun 2014 16:08:45 +0800 Parents: f81498c8c868ef88a652649c1bd608f8898a3cac Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e0680cb170ba022ee0b54b33ea36bbb67e79618d Log: Fixed reference handling of bind_result Changed paths: M ext/mysqlnd/mysqlnd_ps.c Diff: diff --git a/ext/mysqlnd/mysqlnd_ps.c b/ext/mysqlnd/mysqlnd_ps.c index 4019aab...b114296 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;

« previous php.cvs (#78985) next »