From: Dmitry Stogov Date: Fri, 19 Jan 2018 10:19:49 +0000 (+0300) Subject: Usee reference-counting instead of duplication X-Git-Tag: php-7.3.0alpha1~574 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8f916124b9bc4e8fa1f0d10fc95bcab09115d50;p=php Usee reference-counting instead of duplication --- diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c index 232a56dd49..783db16ae1 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); }