From: Marcus Boerger Date: Thu, 26 May 2005 11:53:16 +0000 (+0000) Subject: - Make SQLiteDatabase derivable by dropping final tag from class and X-Git-Tag: php-5.0.1b1~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=457d556f6679a3341c8bf0de4e239ba3303f28f1;p=php - Make SQLiteDatabase derivable by dropping final tag from class and making the ctor final to ensure it is being called, which is the problem. --- 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;