From c6723728dff93c6d4276d32cac7bf2b8465be93a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Fri, 5 Feb 2021 20:57:57 +0100 Subject: Generate ext/intl class entries from stubs Closes GH-6670 --- ext/intl/dateformat/dateformat_class.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'ext/intl/dateformat/dateformat_class.c') diff --git a/ext/intl/dateformat/dateformat_class.c b/ext/intl/dateformat/dateformat_class.c index 7d9dde20b0..b6e0283677 100644 --- a/ext/intl/dateformat/dateformat_class.c +++ b/ext/intl/dateformat/dateformat_class.c @@ -107,12 +107,9 @@ zend_object *IntlDateFormatter_object_clone(zend_object *object) */ void dateformat_register_IntlDateFormatter_class( void ) { - zend_class_entry ce; - /* Create and register 'IntlDateFormatter' class. */ - INIT_CLASS_ENTRY( ce, "IntlDateFormatter", class_IntlDateFormatter_methods ); - ce.create_object = IntlDateFormatter_object_create; - IntlDateFormatter_ce_ptr = zend_register_internal_class( &ce ); + IntlDateFormatter_ce_ptr = register_class_IntlDateFormatter(); + IntlDateFormatter_ce_ptr->create_object = IntlDateFormatter_object_create; memcpy(&IntlDateFormatter_handlers, &std_object_handlers, sizeof IntlDateFormatter_handlers); -- cgit v1.2.1