We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5e2564 commit b2e0077Copy full SHA for b2e0077
ext/intl/locale/locale_methods.c
@@ -1297,7 +1297,7 @@ PHP_FUNCTION(locale_filter_matches)
1297
}
1298
1299
//Convert to lower case for case-insensitive comparison
1300
- cur_lang_tag = ecalloc( 1, strlen(lang_tag ) + 1);
+ cur_lang_tag = ecalloc( 1, strlen(can_lang_tag) + 1);
1301
1302
1303
result = strToMatch( can_lang_tag , cur_lang_tag);
@@ -1307,7 +1307,7 @@ PHP_FUNCTION(locale_filter_matches)
1307
RETURN_FALSE;
1308
1309
1310
- cur_loc_range = ecalloc( 1, strlen(loc_range ) + 1);
+ cur_loc_range = ecalloc( 1, strlen(can_loc_range) + 1);
1311
result = strToMatch( can_loc_range , cur_loc_range );
1312
if( result == 0) {
1313
efree( cur_lang_tag );
0 commit comments