]> granicus.if.org Git - php/commitdiff
- Make SQLiteDatabase derivable by dropping final tag from class and
authorMarcus Boerger <helly@php.net>
Thu, 26 May 2005 11:53:16 +0000 (11:53 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 26 May 2005 11:53:16 +0000 (11:53 +0000)
  making the ctor final to ensure it is being called, which is the problem.

ext/sqlite/sqlite.c

index cd67106631b3a43f307046e853cf00e818cb2868..ad4d060d4e14a6bade9ce28c9f891bc3348b0883 100644 (file)
@@ -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;