summaryrefslogtreecommitdiff
path: root/ext/xmlwriter/php_xmlwriter.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2021-02-17 13:42:42 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2021-02-22 15:24:03 +0100
commit4c6533c257cfabd5dd78988bb277f410b2778140 (patch)
tree81f77c32eb3daf8012427417801b9a66afce8f41 /ext/xmlwriter/php_xmlwriter.c
parentd03be8bf8613571965ec5c033f6dcd607346352a (diff)
downloadphp-git-4c6533c257cfabd5dd78988bb277f410b2778140.tar.gz
Generate class entries from stubs for com, standard, xmlreader, xmlwriter, xsl, zip, Zend
Closes GH-6706
Diffstat (limited to 'ext/xmlwriter/php_xmlwriter.c')
-rw-r--r--ext/xmlwriter/php_xmlwriter.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c
index 6934feb77e..8c3c92849d 100644
--- a/ext/xmlwriter/php_xmlwriter.c
+++ b/ext/xmlwriter/php_xmlwriter.c
@@ -1032,16 +1032,13 @@ PHP_FUNCTION(xmlwriter_flush)
/* {{{ PHP_MINIT_FUNCTION */
static PHP_MINIT_FUNCTION(xmlwriter)
{
- zend_class_entry ce;
-
memcpy(&xmlwriter_object_handlers, &std_object_handlers, sizeof(zend_object_handlers));
xmlwriter_object_handlers.offset = XtOffsetOf(ze_xmlwriter_object, std);
xmlwriter_object_handlers.dtor_obj = xmlwriter_object_dtor;
xmlwriter_object_handlers.free_obj = xmlwriter_object_free_storage;
xmlwriter_object_handlers.clone_obj = NULL;
- INIT_CLASS_ENTRY(ce, "XMLWriter", class_XMLWriter_methods);
- ce.create_object = xmlwriter_object_new;
- xmlwriter_class_entry_ce = zend_register_internal_class(&ce);
+ xmlwriter_class_entry_ce = register_class_XMLWriter();
+ xmlwriter_class_entry_ce->create_object = xmlwriter_object_new;
return SUCCESS;
}