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 | e6c213b8ea7ee8fe7a09f6315b1d133491655c6f (patch) | |
tree | 6d0b38a83f02f9518da56ba47fdda3afd30fb6a1 /ext/intl/dateformat | |
parent | 93a4e0d1fa233bc80d7f1b93bec4cbc583c5da57 (diff) | |
download | php-git-e6c213b8ea7ee8fe7a09f6315b1d133491655c6f.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); } /* }}} */ |