Lines Matching refs:agg_context
330 aggregate_context *agg_context = NULL; in do_callback() local
351 agg_context = sqlite3_aggregate_context(context, sizeof(aggregate_context)); in do_callback()
352 if (!agg_context) { in do_callback()
356 if (Z_ISUNDEF(agg_context->val)) { in do_callback()
357 ZVAL_NEW_REF(&agg_context->val, &EG(uninitialized_zval)); in do_callback()
359 ZVAL_COPY_VALUE(&zargs[0], &agg_context->val); in do_callback()
360 ZVAL_LONG(&zargs[1], ++agg_context->row); in do_callback()
432 if (agg_context) { in do_callback()
433 zval_ptr_dtor(&agg_context->val); in do_callback()
438 if (agg_context) { in do_callback()
440 zval_ptr_dtor(&agg_context->val); in do_callback()
443 zval_ptr_dtor(Z_REFVAL(agg_context->val)); in do_callback()
444 ZVAL_COPY_VALUE(Z_REFVAL(agg_context->val), &retval); in do_callback()