diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2021-02-17 13:42:42 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2021-02-22 15:24:03 +0100 |
commit | 4c6533c257cfabd5dd78988bb277f410b2778140 (patch) | |
tree | 81f77c32eb3daf8012427417801b9a66afce8f41 /ext/com_dotnet/com_persist.c | |
parent | d03be8bf8613571965ec5c033f6dcd607346352a (diff) | |
download | php-git-4c6533c257cfabd5dd78988bb277f410b2778140.tar.gz |
Generate class entries from stubs for com, standard, xmlreader, xmlwriter, xsl, zip, Zend
Closes GH-6706
Diffstat (limited to 'ext/com_dotnet/com_persist.c')
-rw-r--r-- | ext/com_dotnet/com_persist.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/com_dotnet/com_persist.c b/ext/com_dotnet/com_persist.c index bf0f7062fb..2c2cc4226e 100644 --- a/ext/com_dotnet/com_persist.c +++ b/ext/com_dotnet/com_persist.c @@ -721,16 +721,12 @@ static zend_object* helper_new(zend_class_entry *ce) int php_com_persist_minit(INIT_FUNC_ARGS) { - zend_class_entry ce; - memcpy(&helper_handlers, &std_object_handlers, sizeof(helper_handlers)); helper_handlers.free_obj = helper_free_storage; helper_handlers.clone_obj = helper_clone; - INIT_CLASS_ENTRY(ce, "COMPersistHelper", class_COMPersistHelper_methods); - ce.create_object = helper_new; - helper_ce = zend_register_internal_class(&ce); - helper_ce->ce_flags |= ZEND_ACC_FINAL; + helper_ce = register_class_COMPersistHelper(); + helper_ce->create_object = helper_new; le_istream = zend_register_list_destructors_ex(istream_dtor, NULL, "com_dotnet_istream_wrapper", module_number); |