summaryrefslogtreecommitdiff
path: root/ext/intl/dateformat/dateformat_class.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/dateformat/dateformat_class.c')
-rw-r--r--ext/intl/dateformat/dateformat_class.c7
1 files changed, 2 insertions, 5 deletions
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);