summaryrefslogtreecommitdiff
path: root/ext/intl/msgformat/msgformat_class.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2021-02-05 20:57:57 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2021-02-09 13:37:24 +0100
commitc6723728dff93c6d4276d32cac7bf2b8465be93a (patch)
tree5885b48a16e37b21a00814ce91e763b8e81dc7c5 /ext/intl/msgformat/msgformat_class.c
parent99b08ac2817672c108149a65509c79baf261e819 (diff)
downloadphp-git-c6723728dff93c6d4276d32cac7bf2b8465be93a.tar.gz
Generate ext/intl class entries from stubs
Closes GH-6670
Diffstat (limited to 'ext/intl/msgformat/msgformat_class.c')
-rw-r--r--ext/intl/msgformat/msgformat_class.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/intl/msgformat/msgformat_class.c b/ext/intl/msgformat/msgformat_class.c
index d8bf9a006c..d8274a1440 100644
--- a/ext/intl/msgformat/msgformat_class.c
+++ b/ext/intl/msgformat/msgformat_class.c
@@ -93,12 +93,9 @@ zend_object *MessageFormatter_object_clone(zend_object *object)
*/
void msgformat_register_class( void )
{
- zend_class_entry ce;
-
/* Create and register 'MessageFormatter' class. */
- INIT_CLASS_ENTRY( ce, "MessageFormatter", class_MessageFormatter_methods );
- ce.create_object = MessageFormatter_object_create;
- MessageFormatter_ce_ptr = zend_register_internal_class( &ce );
+ MessageFormatter_ce_ptr = register_class_MessageFormatter();
+ MessageFormatter_ce_ptr->create_object = MessageFormatter_object_create;
memcpy(&MessageFormatter_handlers, &std_object_handlers,
sizeof MessageFormatter_handlers);