summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rwxr-xr-xext/intl/locale/locale_methods.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/locale/locale_methods.c b/ext/intl/locale/locale_methods.c
index 1584f54c1d..82be41b061 100755
--- a/ext/intl/locale/locale_methods.c
+++ b/ext/intl/locale/locale_methods.c
@@ -1297,7 +1297,7 @@ PHP_FUNCTION(locale_filter_matches)
}
//Convert to lower case for case-insensitive comparison
- cur_lang_tag = ecalloc( 1, strlen(lang_tag ) + 1);
+ cur_lang_tag = ecalloc( 1, strlen(can_lang_tag) + 1);
//Convert to lower case for case-insensitive comparison
result = strToMatch( can_lang_tag , cur_lang_tag);
@@ -1307,7 +1307,7 @@ PHP_FUNCTION(locale_filter_matches)
RETURN_FALSE;
}
- cur_loc_range = ecalloc( 1, strlen(loc_range ) + 1);
+ cur_loc_range = ecalloc( 1, strlen(can_loc_range) + 1);
result = strToMatch( can_loc_range , cur_loc_range );
if( result == 0) {
efree( cur_lang_tag );