mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Set global error if insufficient numeric args. WS.
This commit is contained in:
parent
f1621485ad
commit
407455876e
@ -46,7 +46,7 @@ static void msgfmt_do_format(MessageFormatter_object *mfo, zval *args, zval *ret
|
||||
* in a pattern are returned unmodified. */
|
||||
if (count < umsg_format_arg_count(MSG_FORMAT_OBJECT(mfo))) {
|
||||
/* Not enough aguments for format! */
|
||||
intl_error_set( INTL_DATA_ERROR_P(mfo), U_ILLEGAL_ARGUMENT_ERROR,
|
||||
intl_errors_set(INTL_DATA_ERROR_P(mfo), U_ILLEGAL_ARGUMENT_ERROR,
|
||||
"msgfmt_format: not enough parameters", 0 TSRMLS_CC);
|
||||
RETVAL_FALSE;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user