diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2021-01-26 11:50:36 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2021-01-26 11:50:36 +0100 |
commit | 1954e5975846b3952ce1d2d6506e6d7134c89684 (patch) | |
tree | db386159cd317fce6f5f2d04fefd45b70244368f /ext/intl/common/common_enum.cpp | |
parent | 4414fd93d06490e726dc04814ba412822170b712 (diff) | |
download | php-git-1954e5975846b3952ce1d2d6506e6d7134c89684.tar.gz |
Add support for generating class entries from stubs
Closes GH-6289
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
Diffstat (limited to 'ext/intl/common/common_enum.cpp')
-rw-r--r-- | ext/intl/common/common_enum.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/intl/common/common_enum.cpp b/ext/intl/common/common_enum.cpp index 9d823ead57..1ea046b87c 100644 --- a/ext/intl/common/common_enum.cpp +++ b/ext/intl/common/common_enum.cpp @@ -286,15 +286,10 @@ PHP_METHOD(IntlIterator, valid) */ U_CFUNC void intl_register_IntlIterator_class(void) { - zend_class_entry ce; - /* Create and register 'IntlIterator' class. */ - INIT_CLASS_ENTRY(ce, "IntlIterator", class_IntlIterator_methods); - ce.create_object = IntlIterator_object_create; - IntlIterator_ce_ptr = zend_register_internal_class(&ce); + IntlIterator_ce_ptr = register_class_IntlIterator(zend_ce_iterator); + IntlIterator_ce_ptr->create_object = IntlIterator_object_create; IntlIterator_ce_ptr->get_iterator = IntlIterator_get_iterator; - zend_class_implements(IntlIterator_ce_ptr, 1, - zend_ce_iterator); memcpy(&IntlIterator_handlers, &std_object_handlers, sizeof IntlIterator_handlers); |