Lines Matching refs:zargs
739 zval *zargs = NULL; in sqlite3_do_callback() local
754 zargs = (zval *)safe_emalloc(fake_argc, sizeof(zval), 0); in sqlite3_do_callback()
764 ZVAL_COPY(&zargs[0], &agg_context->zval_context); in sqlite3_do_callback()
765 ZVAL_LONG(&zargs[1], agg_context->row_count); in sqlite3_do_callback()
772 ZVAL_LONG(&zargs[i + is_agg], sqlite3_value_int64(argv[i])); in sqlite3_do_callback()
774 ZVAL_LONG(&zargs[i + is_agg], sqlite3_value_int(argv[i])); in sqlite3_do_callback()
779 ZVAL_DOUBLE(&zargs[i + is_agg], sqlite3_value_double(argv[i])); in sqlite3_do_callback()
783 ZVAL_NULL(&zargs[i + is_agg]); in sqlite3_do_callback()
789 …ZVAL_STRINGL(&zargs[i + is_agg], (char*)sqlite3_value_text(argv[i]), sqlite3_value_bytes(argv[i])); in sqlite3_do_callback()
794 zend_call_known_fcc(fcc, &retval, fake_argc, zargs, /* named_params */ NULL); in sqlite3_do_callback()
798 zval_ptr_dtor(&zargs[0]); in sqlite3_do_callback()
799 zval_ptr_dtor(&zargs[1]); in sqlite3_do_callback()
803 zval_ptr_dtor(&zargs[i]); in sqlite3_do_callback()
805 efree(zargs); in sqlite3_do_callback()
897 zval zargs[2]; in php_sqlite3_callback_compare() local
906 ZVAL_STRINGL(&zargs[0], a, a_len); in php_sqlite3_callback_compare()
907 ZVAL_STRINGL(&zargs[1], b, b_len); in php_sqlite3_callback_compare()
909 zend_call_known_fcc(&collation->cmp_func, &retval, /* argc */ 2, zargs, /* named_params */ NULL); in php_sqlite3_callback_compare()
911 zval_ptr_dtor(&zargs[0]); in php_sqlite3_callback_compare()
912 zval_ptr_dtor(&zargs[1]); in php_sqlite3_callback_compare()