summaryrefslogtreecommitdiff
path: root/ext/intl/locale/locale_class.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/locale/locale_class.c')
-rw-r--r--ext/intl/locale/locale_class.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/ext/intl/locale/locale_class.c b/ext/intl/locale/locale_class.c
index 0670f55620..852988b4a6 100644
--- a/ext/intl/locale/locale_class.c
+++ b/ext/intl/locale/locale_class.c
@@ -30,19 +30,8 @@ zend_class_entry *Locale_ce_ptr = NULL;
*/
void locale_register_Locale_class( void )
{
- zend_class_entry ce;
-
/* Create and register 'Locale' class. */
- INIT_CLASS_ENTRY( ce, "Locale", class_Locale_methods );
- ce.create_object = NULL;
- Locale_ce_ptr = zend_register_internal_class( &ce );
-
- /* Declare 'Locale' class properties. */
- if( !Locale_ce_ptr )
- {
- zend_error( E_ERROR,
- "Locale: Failed to register Locale class.");
- return;
- }
+ Locale_ce_ptr = register_class_Locale();
+ Locale_ce_ptr->create_object = NULL;
}
/* }}} */