diff options
author | Stanislav Malyshev <stas@php.net> | 2008-07-22 20:40:01 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2008-07-22 20:40:01 +0000 |
commit | 0d30c88ded9883e801ef7e83ed78eae4f1eb20db (patch) | |
tree | 7e70ad6bd0851e653f9501cc28183a3fab95086d /ext/intl/dateformat | |
parent | 07667caf131f1e10f1e440737515b56f5ffbcf91 (diff) | |
download | php-git-0d30c88ded9883e801ef7e83ed78eae4f1eb20db.tar.gz |
use correct locale check
Diffstat (limited to 'ext/intl/dateformat')
-rwxr-xr-x | ext/intl/dateformat/dateformat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/intl/dateformat/dateformat.c b/ext/intl/dateformat/dateformat.c index 055066a1b9..e4b71e08bf 100755 --- a/ext/intl/dateformat/dateformat.c +++ b/ext/intl/dateformat/dateformat.c @@ -98,6 +98,7 @@ static void datefmt_ctor(INTERNAL_FUNCTION_PARAMETERS) RETURN_NULL(); } + INTL_CHECK_LOCALE_LEN_OBJ(locale_len, return_value); DATE_FORMAT_METHOD_FETCH_OBJECT; // Convert pattern (if specified) to UTF-16. if( pattern_str && pattern_str_len>0 ){ |