]> 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 19:03:32 +0000 (19:03 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 28 Aug 2006 19:03:32 +0000 (19:03 +0000)
ext/standard/basic_functions.c

index ee60fb70a48aa1df7c87b68a7dac4fe490ac3765..b9821000d446404c36ec5ad4d74c3070b4452374 100644 (file)
@@ -1227,6 +1227,7 @@ PHP_RSHUTDOWN_FUNCTION(basic)
                setlocale(LC_CTYPE, "");
        }
        STR_FREE(BG(locale_string));
+       BG(locale_string) = NULL;
 
        /*
         FG(stream_wrappers) are destroyed