summaryrefslogtreecommitdiff
path: root/ext/sqlite3/php_sqlite3_structs.h
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2008-07-29 00:56:53 (GMT)
committerScott MacVicar <scottmac@php.net>2008-07-29 00:56:53 (GMT)
commit2b040f2d66bf1f79a4eae6038b6707d8e6d3fa72 (patch)
tree833da371d0c2069212b8c29bb00d6b89e5415055 /ext/sqlite3/php_sqlite3_structs.h
parentae04a26afe1f3238005bc78b48fe37c4b9208781 (diff)
downloadphp-2b040f2d66bf1f79a4eae6038b6707d8e6d3fa72.tar.gz
MFH: Add freelist for tracking sqlite statements to free on implicit SQLite3::close()
Diffstat (limited to 'ext/sqlite3/php_sqlite3_structs.h')
-rw-r--r--ext/sqlite3/php_sqlite3_structs.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/ext/sqlite3/php_sqlite3_structs.h b/ext/sqlite3/php_sqlite3_structs.h
index 47cf88a..e1f5254 100644
--- a/ext/sqlite3/php_sqlite3_structs.h
+++ b/ext/sqlite3/php_sqlite3_structs.h
@@ -68,23 +68,18 @@ typedef struct _php_sqlite3_db_object {
int initialised;
sqlite3 *db;
php_sqlite3_func *funcs;
-} php_sqlite3_db_object;
-/*typedef struct _php_sqlite3_stmt {
- sqlite3_stmt *stmt;
- int initialised;
-} php_sqlite3_stmt;*/
+ zend_llist free_list;
+} php_sqlite3_db_object;
typedef struct _php_sqlite3_stmt_object php_sqlite3_stmt;
typedef struct _php_sqlite3_result_object php_sqlite3_result;
/* sqlite3 objects to be destroyed */
-typedef struct _php_sqlite3_stmt_free_list {
- sqlite3_stmt *stmt;
-
- zval *statement_object;
- zval *result_object;
-} php_sqlite3_stmt_free_list;
+typedef struct _php_sqlite3_free_list {
+ zval *stmt_obj_zval;
+ php_sqlite3_stmt *stmt_obj;
+} php_sqlite3_free_list;
/* Structure for SQLite Result object. */
struct _php_sqlite3_result_object {
@@ -92,8 +87,6 @@ struct _php_sqlite3_result_object {
php_sqlite3_db_object *db_obj;
php_sqlite3_stmt *stmt_obj;
zval *stmt_obj_zval;
-
- int initialised;
int is_prepared_statement;
int complete;