summaryrefslogtreecommitdiff
path: root/ext/intl/dateformat
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2010-11-19 23:22:55 +0000
committerStanislav Malyshev <stas@php.net>2010-11-19 23:22:55 +0000
commite6c213b8ea7ee8fe7a09f6315b1d133491655c6f (patch)
tree6d0b38a83f02f9518da56ba47fdda3afd30fb6a1 /ext/intl/dateformat
parent93a4e0d1fa233bc80d7f1b93bec4cbc583c5da57 (diff)
downloadphp-git-e6c213b8ea7ee8fe7a09f6315b1d133491655c6f.tar.gz
Fix invalid args bugs by Maksymilian Arciemowicz
Diffstat (limited to 'ext/intl/dateformat')
-rwxr-xr-xext/intl/dateformat/dateformat_attr.c1
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);
}
/* }}} */