]> granicus.if.org Git - php/commitdiff
The sqlite classes need to be final
authorMarcus Boerger <helly@php.net>
Fri, 17 Oct 2003 08:17:09 +0000 (08:17 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 17 Oct 2003 08:17:09 +0000 (08:17 +0000)
ext/sqlite/sqlite.c

index 267952aaf07aaf4cc5bb879c824b4d1647ed9b1c..9c208f515893984e1c244391360e48ef756e165c 100644 (file)
@@ -730,6 +730,7 @@ static int php_sqlite_authorizer(void *autharg, int access_type, const char *arg
                sqlite_ce_ ## name = zend_register_internal_class_ex(&ce, parent, NULL TSRMLS_CC); \
                memcpy(&sqlite_object_handlers_ ## name, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); \
                sqlite_object_handlers_ ## name.clone_obj = NULL; \
+               sqlite_ce_ ## name->ce_flags |= ZEND_ACC_FINAL_CLASS; \
        }
 
 zend_class_entry *sqlite_ce_db, *sqlite_ce_exception;