com php-src: Usee reference-counting instead of duplication: ext/sqlite3/sqlite3.c
| From: | Dmitry Stogov | Date: | Fri, 19 Jan 2018 10:19:49 +0000 |
| Subject: | com php-src: Usee reference-counting instead of duplication: ext/sqlite3/sqlite3.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100964@lists.php.net to get a copy of this message | ||
Commit: d8f916124b9bc4e8fa1f0d10fc95bcab09115d50
Author: Dmitry Stogov <dmitry@zend.com> Fri, 19 Jan 2018 13:19:49 +0300
Parents: 5f349f3ab82965c2be784627e6ab2ed73093b708
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d8f916124b9bc4e8fa1f0d10fc95bcab09115d50
Log:
Usee reference-counting instead of duplication
Changed paths:
M ext/sqlite3/sqlite3.c
Diff:
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c
index 232a56d..783db16 100644
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@ -724,7 +724,7 @@ static int sqlite3_do_callback(struct php_sqlite3_fci *fc, zval *cb, int argc, s
if (Z_ISUNDEF(agg_context->zval_context)) {
ZVAL_NULL(&agg_context->zval_context);
}
- ZVAL_DUP(&zargs[0], &agg_context->zval_context);
+ ZVAL_COPY(&zargs[0], &agg_context->zval_context);
ZVAL_LONG(&zargs[1], agg_context->row_count);
}