summaryrefslogtreecommitdiff
path: root/ext/intl/formatter/formatter_parse.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2019-10-29 15:45:46 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-10-30 13:21:40 +0100
commit969e7a3c8b7ee3cc51502f1ff1e751ad71fd049c (patch)
treed66acb5c6bc0aa0932085f22f7bdc76d59c151c8 /ext/intl/formatter/formatter_parse.c
parent5cbe5a538c92d7d515b0270625e2f705a1c02b18 (diff)
downloadphp-git-969e7a3c8b7ee3cc51502f1ff1e751ad71fd049c.tar.gz
Cleanup return values for Intl when parameter parsing is unsuccessful
Closes GH-4871.
Diffstat (limited to 'ext/intl/formatter/formatter_parse.c')
-rw-r--r--ext/intl/formatter/formatter_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/formatter/formatter_parse.c b/ext/intl/formatter/formatter_parse.c
index 8dc39e81c2..76d6715d54 100644
--- a/ext/intl/formatter/formatter_parse.c
+++ b/ext/intl/formatter/formatter_parse.c
@@ -52,7 +52,7 @@ PHP_FUNCTION( numfmt_parse )
if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "Os|lz!",
&object, NumberFormatter_ce_ptr, &str, &str_len, &type, &zposition ) == FAILURE )
{
- RETURN_FALSE;
+ return;
}
if(zposition) {
@@ -134,7 +134,7 @@ PHP_FUNCTION( numfmt_parse_currency )
if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "Osz/|z!",
&object, NumberFormatter_ce_ptr, &str, &str_len, &zcurrency, &zposition ) == FAILURE )
{
- RETURN_FALSE;
+ return;
}
/* Fetch the object. */