diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2018-01-19 13:19:49 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2018-01-19 13:19:49 +0300 |
| commit | d8f916124b9bc4e8fa1f0d10fc95bcab09115d50 (patch) | |
| tree | f3e147356f7dae0f3555648bf716143d74b7dd27 | |
| parent | 5f349f3ab82965c2be784627e6ab2ed73093b708 (diff) | |
| download | php-git-d8f916124b9bc4e8fa1f0d10fc95bcab09115d50.tar.gz | |
Usee reference-counting instead of duplication
| -rw-r--r-- | ext/sqlite3/sqlite3.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
