diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2021-02-05 20:57:57 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2021-02-09 13:37:24 +0100 |
commit | c6723728dff93c6d4276d32cac7bf2b8465be93a (patch) | |
tree | 5885b48a16e37b21a00814ce91e763b8e81dc7c5 /ext/intl/timezone/timezone_class.cpp | |
parent | 99b08ac2817672c108149a65509c79baf261e819 (diff) | |
download | php-git-c6723728dff93c6d4276d32cac7bf2b8465be93a.tar.gz |
Generate ext/intl class entries from stubs
Closes GH-6670
Diffstat (limited to 'ext/intl/timezone/timezone_class.cpp')
-rw-r--r-- | ext/intl/timezone/timezone_class.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/ext/intl/timezone/timezone_class.cpp b/ext/intl/timezone/timezone_class.cpp index f5749fd621..13e691ad97 100644 --- a/ext/intl/timezone/timezone_class.cpp +++ b/ext/intl/timezone/timezone_class.cpp @@ -396,18 +396,9 @@ static zend_object *TimeZone_object_create(zend_class_entry *ce) */ U_CFUNC void timezone_register_IntlTimeZone_class(void) { - zend_class_entry ce; - /* Create and register 'IntlTimeZone' class. */ - INIT_CLASS_ENTRY(ce, "IntlTimeZone", class_IntlTimeZone_methods); - ce.create_object = TimeZone_object_create; - TimeZone_ce_ptr = zend_register_internal_class(&ce); - if (!TimeZone_ce_ptr) { - //can't happen now without bigger problems before - php_error_docref(NULL, E_ERROR, - "IntlTimeZone: class registration has failed."); - return; - } + TimeZone_ce_ptr = register_class_IntlTimeZone(); + TimeZone_ce_ptr->create_object = TimeZone_object_create; memcpy(&TimeZone_handlers, &std_object_handlers, sizeof TimeZone_handlers); |