]> granicus.if.org Git - php/commitdiff
MFH: set BG(locale_string) to NULL on shutdown (partly fixes #38534)
authorAntony Dovgal <tony2001@php.net>
Mon, 28 Aug 2006 18:58:47 +0000 (18:58 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 28 Aug 2006 18:58:47 +0000 (18:58 +0000)
ext/standard/basic_functions.c

index 81e464dc443cef688f663eb7d3f795b9b808d503..6342e0f09a3d852889fc58376f6fb43f0a1475a6 100644 (file)
@@ -4150,6 +4150,7 @@ PHP_RSHUTDOWN_FUNCTION(basic)
                setlocale(LC_CTYPE, "");
        }
        STR_FREE(BG(locale_string));
+       BG(locale_string) = NULL;
 
        /*
         FG(stream_wrappers) and FG(stream_filters) are destroyed