diff options
-rw-r--r-- | ext/intl/msgformat/msgformat_format.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/intl/msgformat/msgformat_format.c b/ext/intl/msgformat/msgformat_format.c index 73fb5eeff6..cb74a3fb1b 100644 --- a/ext/intl/msgformat/msgformat_format.c +++ b/ext/intl/msgformat/msgformat_format.c @@ -116,6 +116,8 @@ PHP_FUNCTION( msgfmt_format_message ) RETURN_FALSE; } + INTL_CHECK_LOCALE_LEN(slocale_len); + memset(mfo, 0, sizeof(*mfo)); msgformat_data_init(&mfo->mf_data); |