diff options
Diffstat (limited to 'ext/intl/dateformat/dateformat_attr.c')
| -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 51012896e..7c6cef953 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); } /* }}} */ |
