From: Antony Dovgal Date: Mon, 28 Aug 2006 18:58:47 +0000 (+0000) Subject: MFH: set BG(locale_string) to NULL on shutdown (partly fixes #38534) X-Git-Tag: php-5.2.0RC3~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecfa8808209f116a7cf40c38987781d56e5a7808;p=php MFH: set BG(locale_string) to NULL on shutdown (partly fixes #38534) --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 81e464dc44..6342e0f09a 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -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