Skip to content

Commit

Permalink
Fixed last commit on 5.4
Browse files Browse the repository at this point in the history
There's no change from the intended behavior. If INTL_G(default_locale)
is NULL, the default ICU locale, as given by locale_get_default() in
master, will still be used by ures_open().
  • Loading branch information
cataphract committed May 24, 2012
1 parent 72c7cfe commit 888e77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/intl/resourcebundle/resourcebundle_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static void resourcebundle_ctor(INTERNAL_FUNCTION_PARAMETERS)
INTL_CHECK_LOCALE_LEN_OBJ(locale_len, return_value);

if (locale == NULL) {
locale = intl_locale_get_default(TSRMLS_C);
locale = INTL_G(default_locale);
}

if (fallback) {
Expand Down

0 comments on commit 888e77f

Please sign in to comment.