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/collator/collator_error.c | |
parent | d3b911952b9ed99cf6695910452d8546ec05a4c4 (diff) | |
download | php-git-1b93cfee0ca23d95893fa6ecd53d0a0c02aeb7bf.tar.gz |
Use RETURN_THROWS() after zend_parse_method_parameters()
Diffstat (limited to 'ext/intl/collator/collator_error.c')
-rw-r--r-- | ext/intl/collator/collator_error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/collator/collator_error.c b/ext/intl/collator/collator_error.c index 337696fb2f..679c4557b4 100644 --- a/ext/intl/collator/collator_error.c +++ b/ext/intl/collator/collator_error.c @@ -34,7 +34,7 @@ PHP_FUNCTION( collator_get_error_code ) if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "O", &object, Collator_ce_ptr ) == FAILURE ) { - return; + RETURN_THROWS(); } /* Fetch the object (without resetting its last error code). */ @@ -62,7 +62,7 @@ PHP_FUNCTION( collator_get_error_message ) if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "O", &object, Collator_ce_ptr ) == FAILURE ) { - return; + RETURN_THROWS(); } /* Fetch the object (without resetting its last error code). */ |