mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Cleanup return values for Intl when parameter parsing is unsuccessful
Closes GH-4871.
This commit is contained in:
parent
5cbe5a538c
commit
969e7a3c8b
35 changed files with 251 additions and 214 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue