summaryrefslogtreecommitdiff
path: root/ext/intl/msgformat/msgformat_attr.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-01-02 22:56:45 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-01-02 23:01:37 +0100
commit1b93cfee0ca23d95893fa6ecd53d0a0c02aeb7bf (patch)
tree012ab6c1b39562f2829e9b97b433b2b900178a0d /ext/intl/msgformat/msgformat_attr.c
parentd3b911952b9ed99cf6695910452d8546ec05a4c4 (diff)
downloadphp-git-1b93cfee0ca23d95893fa6ecd53d0a0c02aeb7bf.tar.gz
Use RETURN_THROWS() after zend_parse_method_parameters()
Diffstat (limited to 'ext/intl/msgformat/msgformat_attr.c')
-rw-r--r--ext/intl/msgformat/msgformat_attr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/intl/msgformat/msgformat_attr.c b/ext/intl/msgformat/msgformat_attr.c
index 1d9996566a..02e220de54 100644
--- a/ext/intl/msgformat/msgformat_attr.c
+++ b/ext/intl/msgformat/msgformat_attr.c
@@ -36,7 +36,7 @@ PHP_FUNCTION( msgfmt_get_pattern )
/* Parse parameters. */
if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "O", &object, MessageFormatter_ce_ptr ) == FAILURE )
{
- return;
+ RETURN_THROWS();
}
/* Fetch the object. */
@@ -67,7 +67,7 @@ PHP_FUNCTION( msgfmt_set_pattern )
if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "Os",
&object, MessageFormatter_ce_ptr, &value, &value_len ) == FAILURE )
{
- return;
+ RETURN_THROWS();
}
MSG_FORMAT_METHOD_FETCH_OBJECT;
@@ -121,7 +121,7 @@ PHP_FUNCTION( msgfmt_get_locale )
if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "O",
&object, MessageFormatter_ce_ptr ) == FAILURE )
{
- return;
+ RETURN_THROWS();
}
/* Fetch the object. */