mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +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
|
@ -135,7 +135,7 @@ PHP_FUNCTION(datefmt_parse)
|
|||
/* Parse parameters. */
|
||||
if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "Os|z!",
|
||||
&object, IntlDateFormatter_ce_ptr, &text_to_parse, &text_len, &z_parse_pos ) == FAILURE ){
|
||||
RETURN_FALSE;
|
||||
return;
|
||||
}
|
||||
|
||||
/* Fetch the object. */
|
||||
|
@ -179,7 +179,7 @@ PHP_FUNCTION(datefmt_localtime)
|
|||
/* Parse parameters. */
|
||||
if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "Os|z!",
|
||||
&object, IntlDateFormatter_ce_ptr, &text_to_parse, &text_len, &z_parse_pos ) == FAILURE ){
|
||||
RETURN_FALSE;
|
||||
return;
|
||||
}
|
||||
|
||||
/* Fetch the object. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue