diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2015-07-03 09:44:48 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2015-07-03 09:44:48 -0500 |
commit | a812a74c2e60a0ba080057067a7634e4da3f2b9b (patch) | |
tree | 7cd6fd55b3fdfe61b22c9370fe23427c6b344243 /ext/intl/intl_error.c | |
parent | f9e9d3a43792846a483092bce409bc9927d24848 (diff) | |
download | php-git-a812a74c2e60a0ba080057067a7634e4da3f2b9b.tar.gz |
Change zend_exception_get_default() to zend_exception_ce
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 ) |