From 969e7a3c8b7ee3cc51502f1ff1e751ad71fd049c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Tue, 29 Oct 2019 15:45:46 +0100 Subject: Cleanup return values for Intl when parameter parsing is unsuccessful Closes GH-4871. --- ext/intl/msgformat/msgformat_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/intl/msgformat/msgformat_parse.c') diff --git a/ext/intl/msgformat/msgformat_parse.c b/ext/intl/msgformat/msgformat_parse.c index 2d082fcdbd..f5eaecfd00 100644 --- a/ext/intl/msgformat/msgformat_parse.c +++ b/ext/intl/msgformat/msgformat_parse.c @@ -67,7 +67,7 @@ PHP_FUNCTION( msgfmt_parse ) if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "Os", &object, MessageFormatter_ce_ptr, &source, &source_len ) == FAILURE ) { - RETURN_FALSE; + return; } /* Fetch the object. */ @@ -99,7 +99,7 @@ PHP_FUNCTION( msgfmt_parse_message ) if( zend_parse_parameters( ZEND_NUM_ARGS(), "sss", &slocale, &slocale_len, &pattern, &pattern_len, &source, &src_len ) == FAILURE ) { - RETURN_FALSE; + return; } INTL_CHECK_LOCALE_LEN(slocale_len); -- cgit v1.2.1