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

index dcf4700b18e45b6d8ebd51808472d1c61bb38f9b..1a528eb831ac8f8741b6a1eee5c4042838ae65af 100644 (file)
@@ -4149,6 +4149,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