summaryrefslogtreecommitdiff
path: root/ext/sqlite/sqlite.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-05-26 11:53:16 +0000
committerMarcus Boerger <helly@php.net>2005-05-26 11:53:16 +0000
commit457d556f6679a3341c8bf0de4e239ba3303f28f1 (patch)
tree76202a424a31c05a1afef6390bd1e6c4e8362f60 /ext/sqlite/sqlite.c
parentfddaa54410f7cbc4a3241f5a58efc2111596a662 (diff)
downloadphp-git-457d556f6679a3341c8bf0de4e239ba3303f28f1.tar.gz
- Make SQLiteDatabase derivable by dropping final tag from class and
making the ctor final to ensure it is being called, which is the problem.
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r--ext/sqlite/sqlite.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c
index cd67106631..ad4d060d4e 100644
--- a/ext/sqlite/sqlite.c
+++ b/ext/sqlite/sqlite.c
@@ -1013,6 +1013,10 @@ PHP_MINIT_FUNCTION(sqlite)
#else
REGISTER_SQLITE_CLASS(Exception, exception, zend_exception_get_default());
#endif
+
+ sqlite_ce_db->ce_flags &= ~ZEND_ACC_FINAL_CLASS;
+ sqlite_ce_db->constructor->common.fn_flags |= ZEND_ACC_FINAL;
+
sqlite_object_handlers_query.get_class_entry = sqlite_get_ce_query;
sqlite_object_handlers_ub_query.get_class_entry = sqlite_get_ce_ub_query;
sqlite_object_handlers_ub_query.count_elements = sqlite_count_elements;