diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2019-12-31 11:27:02 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2019-12-31 11:46:11 +0100 |
commit | 345703724c633fb8c1b34e1299bf3375f000c398 (patch) | |
tree | 18da0e12163e82ce16fbee726df1839439a1edfa /ext/intl/converter | |
parent | d9ac1ca8de298baf10f7c713c0b37c6ea5d89cf4 (diff) | |
download | php-git-345703724c633fb8c1b34e1299bf3375f000c398.tar.gz |
Use RETURN_THROWS() during ZPP in most of the extensions
Except for some bigger ones: reflection, sodium, spl
Diffstat (limited to 'ext/intl/converter')
-rw-r--r-- | ext/intl/converter/converter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/intl/converter/converter.c b/ext/intl/converter/converter.c index a5eb9063cf..a8d0dcbb65 100644 --- a/ext/intl/converter/converter.c +++ b/ext/intl/converter/converter.c @@ -120,7 +120,7 @@ static PHP_METHOD(UConverter, toUCallback) { if (zend_parse_parameters(ZEND_NUM_ARGS(), "lzzz", &reason, &source, &codeUnits, &error) == FAILURE) { - return; + RETURN_THROWS(); } php_converter_default_callback(return_value, ZEND_THIS, reason, error); @@ -142,7 +142,7 @@ static PHP_METHOD(UConverter, fromUCallback) { if (zend_parse_parameters(ZEND_NUM_ARGS(), "lzzz", &reason, &source, &codePoint, &error) == FAILURE) { - return; + RETURN_THROWS(); } php_converter_default_callback(return_value, ZEND_THIS, reason, error); @@ -427,7 +427,7 @@ static void php_converter_do_set_encoding(UConverter **pcnv, INTERNAL_FUNCTION_P if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &enc, &enc_len) == FAILURE) { intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR, "Bad arguments, " "expected one string argument", 0); - return; + RETURN_THROWS(); } intl_errors_reset(&objval->error); @@ -457,7 +457,7 @@ static void php_converter_do_get_encoding(php_converter_object *objval, UConvert if (zend_parse_parameters_none() == FAILURE) { intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR, "Expected no arguments", 0); - return; + RETURN_THROWS(); } intl_errors_reset(&objval->error); |