Lines Matching refs:intern

2141 	php_sqlite3_db_object *intern = php_sqlite3_db_from_obj(object);  in php_sqlite3_object_free_storage()  local
2145 if (!intern) { in php_sqlite3_object_free_storage()
2150 if (intern->authorizer_fci.size > 0) { in php_sqlite3_object_free_storage()
2151 zval_ptr_dtor(&intern->authorizer_fci.function_name); in php_sqlite3_object_free_storage()
2154 while (intern->funcs) { in php_sqlite3_object_free_storage()
2155 func = intern->funcs; in php_sqlite3_object_free_storage()
2156 intern->funcs = func->next; in php_sqlite3_object_free_storage()
2157 if (intern->initialised && intern->db) { in php_sqlite3_object_free_storage()
2158 …sqlite3_create_function(intern->db, func->func_name, func->argc, SQLITE_UTF8, func, NULL, NULL, NU… in php_sqlite3_object_free_storage()
2175 while (intern->collations){ in php_sqlite3_object_free_storage()
2176 collation = intern->collations; in php_sqlite3_object_free_storage()
2177 intern->collations = collation->next; in php_sqlite3_object_free_storage()
2178 if (intern->initialised && intern->db){ in php_sqlite3_object_free_storage()
2179 sqlite3_create_collation(intern->db, collation->collation_name, SQLITE_UTF8, NULL, NULL); in php_sqlite3_object_free_storage()
2188 if (intern->initialised && intern->db) { in php_sqlite3_object_free_storage()
2189 sqlite3_close(intern->db); in php_sqlite3_object_free_storage()
2190 intern->initialised = 0; in php_sqlite3_object_free_storage()
2193 zend_object_std_dtor(&intern->zo); in php_sqlite3_object_free_storage()
2199 php_sqlite3_db_object *intern = php_sqlite3_db_from_obj(object); in php_sqlite3_get_gc() local
2201 if (intern->funcs == NULL && intern->collations == NULL) { in php_sqlite3_get_gc()
2209 php_sqlite3_func *func = intern->funcs; in php_sqlite3_get_gc()
2217 php_sqlite3_collation *collation = intern->collations; in php_sqlite3_get_gc()
2235 php_sqlite3_stmt *intern = php_sqlite3_stmt_from_obj(object); in php_sqlite3_stmt_object_free_storage() local
2237 if (!intern) { in php_sqlite3_stmt_object_free_storage()
2241 if (intern->bound_params) { in php_sqlite3_stmt_object_free_storage()
2242 zend_hash_destroy(intern->bound_params); in php_sqlite3_stmt_object_free_storage()
2243 FREE_HASHTABLE(intern->bound_params); in php_sqlite3_stmt_object_free_storage()
2244 intern->bound_params = NULL; in php_sqlite3_stmt_object_free_storage()
2247 if (intern->initialised) { in php_sqlite3_stmt_object_free_storage()
2248 zend_llist_del_element(&(intern->db_obj->free_list), intern->stmt, in php_sqlite3_stmt_object_free_storage()
2252 if (!Z_ISUNDEF(intern->db_obj_zval)) { in php_sqlite3_stmt_object_free_storage()
2253 zval_ptr_dtor(&intern->db_obj_zval); in php_sqlite3_stmt_object_free_storage()
2256 zend_object_std_dtor(&intern->zo); in php_sqlite3_stmt_object_free_storage()
2262 php_sqlite3_result *intern = php_sqlite3_result_from_obj(object); in php_sqlite3_result_object_free_storage() local
2264 if (!intern) { in php_sqlite3_result_object_free_storage()
2268 if (!Z_ISNULL(intern->stmt_obj_zval)) { in php_sqlite3_result_object_free_storage()
2269 if (intern->stmt_obj && intern->stmt_obj->initialised) { in php_sqlite3_result_object_free_storage()
2270 sqlite3_reset(intern->stmt_obj->stmt); in php_sqlite3_result_object_free_storage()
2273 zval_ptr_dtor(&intern->stmt_obj_zval); in php_sqlite3_result_object_free_storage()
2276 zend_object_std_dtor(&intern->zo); in php_sqlite3_result_object_free_storage()
2282 php_sqlite3_db_object *intern; in php_sqlite3_object_new() local
2285 intern = zend_object_alloc(sizeof(php_sqlite3_db_object), class_type); in php_sqlite3_object_new()
2288 …zend_llist_init(&(intern->free_list), sizeof(php_sqlite3_free_list *), (llist_dtor_func_t)php_sql… in php_sqlite3_object_new()
2290 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_object_new()
2291 object_properties_init(&intern->zo, class_type); in php_sqlite3_object_new()
2293 intern->zo.handlers = &sqlite3_object_handlers; in php_sqlite3_object_new()
2295 return &intern->zo; in php_sqlite3_object_new()
2301 php_sqlite3_stmt *intern; in php_sqlite3_stmt_object_new() local
2304 intern = zend_object_alloc(sizeof(php_sqlite3_stmt), class_type); in php_sqlite3_stmt_object_new()
2306 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new()
2307 object_properties_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new()
2309 intern->zo.handlers = &sqlite3_stmt_object_handlers; in php_sqlite3_stmt_object_new()
2311 return &intern->zo; in php_sqlite3_stmt_object_new()
2317 php_sqlite3_result *intern; in php_sqlite3_result_object_new() local
2320 intern = zend_object_alloc(sizeof(php_sqlite3_result), class_type); in php_sqlite3_result_object_new()
2322 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_result_object_new()
2323 object_properties_init(&intern->zo, class_type); in php_sqlite3_result_object_new()
2325 intern->zo.handlers = &sqlite3_result_object_handlers; in php_sqlite3_result_object_new()
2327 return &intern->zo; in php_sqlite3_result_object_new()