Lines Matching refs:func

98 	struct pdo_sqlite_func *func;  in pdo_sqlite_cleanup_callbacks()  local
101 func = H->funcs; in pdo_sqlite_cleanup_callbacks()
102 H->funcs = func->next; in pdo_sqlite_cleanup_callbacks()
107 func->funcname, in pdo_sqlite_cleanup_callbacks()
108 func->argc, in pdo_sqlite_cleanup_callbacks()
110 func, in pdo_sqlite_cleanup_callbacks()
114 efree((char*)func->funcname); in pdo_sqlite_cleanup_callbacks()
115 if (ZEND_FCC_INITIALIZED(func->func)) { in pdo_sqlite_cleanup_callbacks()
116 zend_fcc_dtor(&func->func); in pdo_sqlite_cleanup_callbacks()
118 if (ZEND_FCC_INITIALIZED(func->step)) { in pdo_sqlite_cleanup_callbacks()
119 zend_fcc_dtor(&func->step); in pdo_sqlite_cleanup_callbacks()
121 if (ZEND_FCC_INITIALIZED(func->fini)) { in pdo_sqlite_cleanup_callbacks()
122 zend_fcc_dtor(&func->fini); in pdo_sqlite_cleanup_callbacks()
124 efree(func); in pdo_sqlite_cleanup_callbacks()
444 struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context); in php_sqlite3_func_step_callback() local
446 do_callback(&func->step, argc, argv, context, 1); in php_sqlite3_func_step_callback()
451 struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context); in php_sqlite3_func_final_callback() local
453 do_callback(&func->fini, 0, NULL, context, 1); in php_sqlite3_func_final_callback()
489 struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context); in php_sqlite3_func_callback() local
491 do_callback(&func->func, argc, argv, context, 0); in php_sqlite3_func_callback()
496 struct pdo_sqlite_func *func; in pdo_sqlite_create_function_internal() local
520 func = (struct pdo_sqlite_func*)ecalloc(1, sizeof(*func)); in pdo_sqlite_create_function_internal()
522 …ret = sqlite3_create_function(H->db, func_name, argc, flags | SQLITE_UTF8, func, php_sqlite3_func_… in pdo_sqlite_create_function_internal()
524 func->funcname = estrdup(func_name); in pdo_sqlite_create_function_internal()
526 zend_fcc_dup(&func->func, &fcc); in pdo_sqlite_create_function_internal()
528 func->argc = argc; in pdo_sqlite_create_function_internal()
530 func->next = H->funcs; in pdo_sqlite_create_function_internal()
531 H->funcs = func; in pdo_sqlite_create_function_internal()
536 efree(func); in pdo_sqlite_create_function_internal()
553 struct pdo_sqlite_func *func; in pdo_sqlite_create_aggregate_internal() local
578 func = (struct pdo_sqlite_func*)ecalloc(1, sizeof(*func)); in pdo_sqlite_create_aggregate_internal()
580 ret = sqlite3_create_function(H->db, func_name, argc, SQLITE_UTF8, func, NULL, in pdo_sqlite_create_aggregate_internal()
583 func->funcname = estrdup(func_name); in pdo_sqlite_create_aggregate_internal()
585 zend_fcc_dup(&func->step, &step_fcc); in pdo_sqlite_create_aggregate_internal()
586 zend_fcc_dup(&func->fini, &fini_fcc); in pdo_sqlite_create_aggregate_internal()
588 func->argc = argc; in pdo_sqlite_create_aggregate_internal()
590 func->next = H->funcs; in pdo_sqlite_create_aggregate_internal()
591 H->funcs = func; in pdo_sqlite_create_aggregate_internal()
596 efree(func); in pdo_sqlite_create_aggregate_internal()
707 struct pdo_sqlite_func *func = H->funcs; in pdo_sqlite_get_gc() local
708 while (func) { in pdo_sqlite_get_gc()
709 if (ZEND_FCC_INITIALIZED(func->func)) { in pdo_sqlite_get_gc()
710 zend_get_gc_buffer_add_fcc(gc_buffer, &func->func); in pdo_sqlite_get_gc()
712 if (ZEND_FCC_INITIALIZED(func->step)) { in pdo_sqlite_get_gc()
713 zend_get_gc_buffer_add_fcc(gc_buffer, &func->step); in pdo_sqlite_get_gc()
715 if (ZEND_FCC_INITIALIZED(func->fini)) { in pdo_sqlite_get_gc()
716 zend_get_gc_buffer_add_fcc(gc_buffer, &func->fini); in pdo_sqlite_get_gc()
718 func = func->next; in pdo_sqlite_get_gc()