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.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.c')
-rw-r--r-- | ext/intl/msgformat/msgformat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/msgformat/msgformat.c b/ext/intl/msgformat/msgformat.c index 1b98411d93..8e8ca8d0c8 100644 --- a/ext/intl/msgformat/msgformat.c +++ b/ext/intl/msgformat/msgformat.c @@ -132,7 +132,7 @@ PHP_FUNCTION( msgfmt_get_error_code ) if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "O", &object, MessageFormatter_ce_ptr ) == FAILURE ) { - return; + RETURN_THROWS(); } mfo = Z_INTL_MESSAGEFORMATTER_P( object ); @@ -157,7 +157,7 @@ PHP_FUNCTION( msgfmt_get_error_message ) if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "O", &object, MessageFormatter_ce_ptr ) == FAILURE ) { - return; + RETURN_THROWS(); } mfo = Z_INTL_MESSAGEFORMATTER_P( object ); |