]> granicus.if.org Git - php/commitdiff
Fixed last commit on 5.4
authorGustavo André dos Santos Lopes <cataphract@php.net>
Thu, 24 May 2012 12:04:19 +0000 (14:04 +0200)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Thu, 24 May 2012 12:17:52 +0000 (14:17 +0200)
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().

ext/intl/resourcebundle/resourcebundle_class.c

index e3f8252b91f49bdaa5c788624e6a4e2ad12c8bb9..6529824aa74f66a64854cc5b12b72f27aa3d874b 100644 (file)
@@ -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) {