From a812a74c2e60a0ba080057067a7634e4da3f2b9b Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Fri, 3 Jul 2015 09:44:48 -0500 Subject: Change zend_exception_get_default() to zend_exception_ce --- ext/intl/intl_error.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'ext/intl/intl_error.c') 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 ) -- cgit v1.2.1