summaryrefslogtreecommitdiff
path: root/ext/intl/dateformat
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2008-07-22 20:40:01 +0000
committerStanislav Malyshev <stas@php.net>2008-07-22 20:40:01 +0000
commit0d30c88ded9883e801ef7e83ed78eae4f1eb20db (patch)
tree7e70ad6bd0851e653f9501cc28183a3fab95086d /ext/intl/dateformat
parent07667caf131f1e10f1e440737515b56f5ffbcf91 (diff)
downloadphp-git-0d30c88ded9883e801ef7e83ed78eae4f1eb20db.tar.gz
use correct locale check
Diffstat (limited to 'ext/intl/dateformat')
-rwxr-xr-xext/intl/dateformat/dateformat.c1
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 ){