Lines Matching refs:zargs

698 	zval *zargs = NULL;  in sqlite3_do_callback()  local
720 zargs = (zval *)safe_emalloc(fake_argc, sizeof(zval), 0); in sqlite3_do_callback()
730 ZVAL_DUP(&zargs[0], &agg_context->zval_context); in sqlite3_do_callback()
731 ZVAL_LONG(&zargs[1], agg_context->row_count); in sqlite3_do_callback()
738 ZVAL_LONG(&zargs[i + is_agg], sqlite3_value_int64(argv[i])); in sqlite3_do_callback()
740 ZVAL_LONG(&zargs[i + is_agg], sqlite3_value_int(argv[i])); in sqlite3_do_callback()
745 ZVAL_DOUBLE(&zargs[i + is_agg], sqlite3_value_double(argv[i])); in sqlite3_do_callback()
749 ZVAL_NULL(&zargs[i + is_agg]); in sqlite3_do_callback()
755 …ZVAL_STRINGL(&zargs[i + is_agg], (char*)sqlite3_value_text(argv[i]), sqlite3_value_bytes(argv[i])); in sqlite3_do_callback()
760 fc->fci.params = zargs; in sqlite3_do_callback()
767 zval_ptr_dtor(&zargs[0]); in sqlite3_do_callback()
773 zval_ptr_dtor(&zargs[i]); in sqlite3_do_callback()
776 zval_ptr_dtor(&zargs[1]); in sqlite3_do_callback()
778 efree(zargs); in sqlite3_do_callback()
864 zval *zargs = NULL; in php_sqlite3_callback_compare() local
874 zargs = safe_emalloc(2, sizeof(zval), 0); in php_sqlite3_callback_compare()
875 ZVAL_STRINGL(&zargs[0], a, a_len); in php_sqlite3_callback_compare()
876 ZVAL_STRINGL(&zargs[1], b, b_len); in php_sqlite3_callback_compare()
878 collation->fci.fci.params = zargs; in php_sqlite3_callback_compare()
889 zval_ptr_dtor(&zargs[0]); in php_sqlite3_callback_compare()
890 zval_ptr_dtor(&zargs[1]); in php_sqlite3_callback_compare()
891 efree(zargs); in php_sqlite3_callback_compare()