summaryrefslogtreecommitdiff
path: root/ext/intl/msgformat/msgformat_class.c
diff options
context:
space:
mode:
authorDanack <Danack@basereality.com>2015-03-15 13:59:48 +0000
committerDanack <Danack@basereality.com>2015-03-15 13:59:48 +0000
commit99dae96dc0041f856ae066b3f572495da609d28e (patch)
treefa5dbd0d839b4973359273103bd2cbfb90a9288e /ext/intl/msgformat/msgformat_class.c
parentc57bde7c9e2f4ac3e93f096eaa93d4ab0133915d (diff)
downloadphp-git-99dae96dc0041f856ae066b3f572495da609d28e.tar.gz
Converted intl extension to use IntlException in constructors.
Diffstat (limited to 'ext/intl/msgformat/msgformat_class.c')
-rw-r--r--ext/intl/msgformat/msgformat_class.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/msgformat/msgformat_class.c b/ext/intl/msgformat/msgformat_class.c
index 8d464c6ca4..1296d087e1 100644
--- a/ext/intl/msgformat/msgformat_class.c
+++ b/ext/intl/msgformat/msgformat_class.c
@@ -87,10 +87,10 @@ zend_object *MessageFormatter_object_clone(zval *object)
if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) {
intl_errors_set(INTL_DATA_ERROR_P(mfo), INTL_DATA_ERROR_CODE(mfo),
"Failed to clone MessageFormatter object", 0);
- zend_throw_exception_ex(NULL, 0, "Failed to clone MessageFormatter object");
+ zend_throw_exception_ex(IntlException_ce_ptr, 0, "Failed to clone MessageFormatter object");
}
} else {
- zend_throw_exception_ex(NULL, 0, "Cannot clone unconstructed MessageFormatter");
+ zend_throw_exception_ex(IntlException_ce_ptr, 0, "Cannot clone unconstructed MessageFormatter");
}
return new_obj;
}