Lines Matching refs:intern

2165 	php_sqlite3_db_object *intern = php_sqlite3_db_from_obj(object);  in php_sqlite3_object_free_storage()  local
2169 if (!intern) { in php_sqlite3_object_free_storage()
2174 if (intern->authorizer_fci.size > 0) { in php_sqlite3_object_free_storage()
2175 zval_ptr_dtor(&intern->authorizer_fci.function_name); in php_sqlite3_object_free_storage()
2178 while (intern->funcs) { in php_sqlite3_object_free_storage()
2179 func = intern->funcs; in php_sqlite3_object_free_storage()
2180 intern->funcs = func->next; in php_sqlite3_object_free_storage()
2181 if (intern->initialised && intern->db) { in php_sqlite3_object_free_storage()
2182 …sqlite3_create_function(intern->db, func->func_name, func->argc, SQLITE_UTF8, func, NULL, NULL, NU… in php_sqlite3_object_free_storage()
2199 while (intern->collations){ in php_sqlite3_object_free_storage()
2200 collation = intern->collations; in php_sqlite3_object_free_storage()
2201 intern->collations = collation->next; in php_sqlite3_object_free_storage()
2202 if (intern->initialised && intern->db){ in php_sqlite3_object_free_storage()
2203 sqlite3_create_collation(intern->db, collation->collation_name, SQLITE_UTF8, NULL, NULL); in php_sqlite3_object_free_storage()
2212 if (intern->initialised && intern->db) { in php_sqlite3_object_free_storage()
2213 sqlite3_close(intern->db); in php_sqlite3_object_free_storage()
2214 intern->initialised = 0; in php_sqlite3_object_free_storage()
2217 zend_object_std_dtor(&intern->zo); in php_sqlite3_object_free_storage()
2223 php_sqlite3_stmt *intern = php_sqlite3_stmt_from_obj(object); in php_sqlite3_stmt_object_free_storage() local
2225 if (!intern) { in php_sqlite3_stmt_object_free_storage()
2229 if (intern->bound_params) { in php_sqlite3_stmt_object_free_storage()
2230 zend_hash_destroy(intern->bound_params); in php_sqlite3_stmt_object_free_storage()
2231 FREE_HASHTABLE(intern->bound_params); in php_sqlite3_stmt_object_free_storage()
2232 intern->bound_params = NULL; in php_sqlite3_stmt_object_free_storage()
2235 if (intern->initialised) { in php_sqlite3_stmt_object_free_storage()
2236 zend_llist_del_element(&(intern->db_obj->free_list), intern->stmt, in php_sqlite3_stmt_object_free_storage()
2240 if (!Z_ISUNDEF(intern->db_obj_zval)) { in php_sqlite3_stmt_object_free_storage()
2241 zval_ptr_dtor(&intern->db_obj_zval); in php_sqlite3_stmt_object_free_storage()
2244 zend_object_std_dtor(&intern->zo); in php_sqlite3_stmt_object_free_storage()
2250 php_sqlite3_result *intern = php_sqlite3_result_from_obj(object); in php_sqlite3_result_object_free_storage() local
2252 if (!intern) { in php_sqlite3_result_object_free_storage()
2256 if (!Z_ISNULL(intern->stmt_obj_zval)) { in php_sqlite3_result_object_free_storage()
2257 if (intern->stmt_obj && intern->stmt_obj->initialised) { in php_sqlite3_result_object_free_storage()
2258 sqlite3_reset(intern->stmt_obj->stmt); in php_sqlite3_result_object_free_storage()
2261 zval_ptr_dtor(&intern->stmt_obj_zval); in php_sqlite3_result_object_free_storage()
2264 zend_object_std_dtor(&intern->zo); in php_sqlite3_result_object_free_storage()
2270 php_sqlite3_db_object *intern; in php_sqlite3_object_new() local
2273 intern = zend_object_alloc(sizeof(php_sqlite3_db_object), class_type); in php_sqlite3_object_new()
2276 …zend_llist_init(&(intern->free_list), sizeof(php_sqlite3_free_list *), (llist_dtor_func_t)php_sql… in php_sqlite3_object_new()
2278 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_object_new()
2279 object_properties_init(&intern->zo, class_type); in php_sqlite3_object_new()
2281 intern->zo.handlers = &sqlite3_object_handlers; in php_sqlite3_object_new()
2283 return &intern->zo; in php_sqlite3_object_new()
2289 php_sqlite3_stmt *intern; in php_sqlite3_stmt_object_new() local
2292 intern = zend_object_alloc(sizeof(php_sqlite3_stmt), class_type); in php_sqlite3_stmt_object_new()
2294 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new()
2295 object_properties_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new()
2297 intern->zo.handlers = &sqlite3_stmt_object_handlers; in php_sqlite3_stmt_object_new()
2299 return &intern->zo; in php_sqlite3_stmt_object_new()
2305 php_sqlite3_result *intern; in php_sqlite3_result_object_new() local
2308 intern = zend_object_alloc(sizeof(php_sqlite3_result), class_type); in php_sqlite3_result_object_new()
2310 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_result_object_new()
2311 object_properties_init(&intern->zo, class_type); in php_sqlite3_result_object_new()
2313 intern->zo.handlers = &sqlite3_result_object_handlers; in php_sqlite3_result_object_new()
2315 return &intern->zo; in php_sqlite3_result_object_new()