diff options
author | Stanislav Malyshev <stas@php.net> | 2010-11-19 23:22:55 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2010-11-19 23:22:55 +0000 |
commit | 0fa76d24070becffa4d32c47a7bb0dbe8a398e25 (patch) | |
tree | d929bf891abfb0968f75923a5c1edcaa9e48f4b0 /ext/intl/dateformat | |
parent | 897f0b4c27b42e9ccf441fe11ab757a401cf39d5 (diff) | |
download | php-git-0fa76d24070becffa4d32c47a7bb0dbe8a398e25.tar.gz |
Fix invalid args bugs by Maksymilian Arciemowicz
Diffstat (limited to 'ext/intl/dateformat')
-rwxr-xr-x | ext/intl/dateformat/dateformat_attr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/intl/dateformat/dateformat_attr.c b/ext/intl/dateformat/dateformat_attr.c index 51012896ed..7c6cef9536 100755 --- a/ext/intl/dateformat/dateformat_attr.c +++ b/ext/intl/dateformat/dateformat_attr.c @@ -309,6 +309,7 @@ PHP_FUNCTION( datefmt_get_locale ) DATE_FORMAT_METHOD_FETCH_OBJECT; loc = (char *)udat_getLocaleByType(DATE_FORMAT_OBJECT(dfo), loc_type,&INTL_DATA_ERROR_CODE(dfo)); + INTL_METHOD_CHECK_STATUS(dfo, "Error getting locale"); RETURN_STRING(loc, 1); } /* }}} */ |