diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-02 22:56:45 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-02 23:01:37 +0100 |
commit | 1b93cfee0ca23d95893fa6ecd53d0a0c02aeb7bf (patch) | |
tree | 012ab6c1b39562f2829e9b97b433b2b900178a0d /ext/intl/msgformat/msgformat_format.c | |
parent | d3b911952b9ed99cf6695910452d8546ec05a4c4 (diff) | |
download | php-git-1b93cfee0ca23d95893fa6ecd53d0a0c02aeb7bf.tar.gz |
Use RETURN_THROWS() after zend_parse_method_parameters()
Diffstat (limited to 'ext/intl/msgformat/msgformat_format.c')
-rw-r--r-- | ext/intl/msgformat/msgformat_format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/msgformat/msgformat_format.c b/ext/intl/msgformat/msgformat_format.c index e36a40f492..56a3a11782 100644 --- a/ext/intl/msgformat/msgformat_format.c +++ b/ext/intl/msgformat/msgformat_format.c @@ -63,7 +63,7 @@ PHP_FUNCTION( msgfmt_format ) if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "Oa", &object, MessageFormatter_ce_ptr, &args ) == FAILURE ) { - return; + RETURN_THROWS(); } /* Fetch the object. */ @@ -94,7 +94,7 @@ PHP_FUNCTION( msgfmt_format_message ) if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "ssa", &slocale, &slocale_len, &pattern, &pattern_len, &args ) == FAILURE ) { - return; + RETURN_THROWS(); } INTL_CHECK_LOCALE_LEN(slocale_len); |