summaryrefslogtreecommitdiff
path: root/ext/intl/common/common_error.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/common/common_error.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/common/common_error.c')
-rw-r--r--ext/intl/common/common_error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/common/common_error.c b/ext/intl/common/common_error.c
index 4bb21e3583..85d5595dcc 100644
--- a/ext/intl/common/common_error.c
+++ b/ext/intl/common/common_error.c
@@ -52,7 +52,7 @@ PHP_FUNCTION( intl_is_failure )
if( zend_parse_parameters( ZEND_NUM_ARGS(), "l",
&err_code ) == FAILURE )
{
- RETURN_FALSE;
+ return;
}
RETURN_BOOL( U_FAILURE( err_code ) );
@@ -71,7 +71,7 @@ PHP_FUNCTION( intl_error_name )
if( zend_parse_parameters( ZEND_NUM_ARGS(), "l",
&err_code ) == FAILURE )
{
- RETURN_FALSE;
+ return;
}
RETURN_STRING( (char*)u_errorName( err_code ) );