mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use RETURN_THROWS() after try_convert_to_string()
This commit is contained in:
parent
1658b5babc
commit
7b4a4d2ace
17 changed files with 30 additions and 30 deletions
|
@ -141,7 +141,7 @@ U_CFUNC PHP_FUNCTION(datefmt_format_object)
|
|||
dateStyle = timeStyle = (DateFormat::EStyle)Z_LVAL_P(format);
|
||||
} else {
|
||||
if (!try_convert_to_string(format)) {
|
||||
return;
|
||||
RETURN_THROWS();
|
||||
}
|
||||
if (Z_STRLEN_P(format) == 0) {
|
||||
intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue