summaryrefslogtreecommitdiff
path: root/ext/intl/msgformat/msgformat_format.c
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2012-05-06 00:48:17 +0200
committerGustavo André dos Santos Lopes <cataphract@php.net>2012-05-13 20:53:05 +0100
commit407455876e486df45a6b6c91b483060b0479a0b3 (patch)
tree3d18ce222152f7d059a2db292e4f928b5ab8d8fc /ext/intl/msgformat/msgformat_format.c
parentf1621485ad7c9b02b4df42c21a472223fe106f51 (diff)
downloadphp-git-407455876e486df45a6b6c91b483060b0479a0b3.tar.gz
Set global error if insufficient numeric args. WS.
Diffstat (limited to 'ext/intl/msgformat/msgformat_format.c')
-rwxr-xr-xext/intl/msgformat/msgformat_format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/intl/msgformat/msgformat_format.c b/ext/intl/msgformat/msgformat_format.c
index d88bc00181..099dbcb4b6 100755
--- a/ext/intl/msgformat/msgformat_format.c
+++ b/ext/intl/msgformat/msgformat_format.c
@@ -44,10 +44,10 @@ static void msgfmt_do_format(MessageFormatter_object *mfo, zval *args, zval *ret
/* umsg_format_arg_count() always returns 0 for named argument patterns,
* so this check is ignored and un-substituted {name} strings
* in a pattern are returned unmodified. */
- if(count < umsg_format_arg_count(MSG_FORMAT_OBJECT(mfo))) {
+ 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,
- "msgfmt_format: not enough parameters", 0 TSRMLS_CC );
+ intl_errors_set(INTL_DATA_ERROR_P(mfo), U_ILLEGAL_ARGUMENT_ERROR,
+ "msgfmt_format: not enough parameters", 0 TSRMLS_CC);
RETVAL_FALSE;
return;
}