diff options
Diffstat (limited to 'ext/intl/intl_error.c')
-rw-r--r-- | ext/intl/intl_error.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ext/intl/intl_error.c b/ext/intl/intl_error.c index d5e246efb1..0118ef652d 100644 --- a/ext/intl/intl_error.c +++ b/ext/intl/intl_error.c @@ -232,16 +232,13 @@ void intl_errors_set_code( intl_error* err, UErrorCode err_code ) void intl_register_IntlException_class( void ) { - zend_class_entry ce, - *default_exception_ce; - - default_exception_ce = zend_exception_get_default( ); - + zend_class_entry ce; + /* Create and register 'IntlException' class. */ INIT_CLASS_ENTRY_EX( ce, "IntlException", sizeof( "IntlException" ) - 1, NULL ); IntlException_ce_ptr = zend_register_internal_class_ex( &ce, - default_exception_ce ); - IntlException_ce_ptr->create_object = default_exception_ce->create_object; + zend_exception_ce ); + IntlException_ce_ptr->create_object = zend_exception_ce->create_object; } smart_str intl_parse_error_to_string( UParseError* pe ) |