Set global error if insufficient numeric args. WS.

This commit is contained in:
Gustavo André dos Santos Lopes 2012-05-06 00:48:17 +02:00
parent f1621485ad
commit 407455876e
3 changed files with 12 additions and 12 deletions

View File

@ -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;