]> granicus.if.org Git - php/commitdiff
- Restore locale settings to state they were at module startup if they
authorJouni Ahto <jah@php.net>
Mon, 5 Jun 2000 18:47:34 +0000 (18:47 +0000)
committerJouni Ahto <jah@php.net>
Mon, 5 Jun 2000 18:47:34 +0000 (18:47 +0000)
  were changed.

ext/standard/basic_functions.c

index b25f7336117fe65f6abdd1b6c26c249cffb00864..81f6364488caeaf4e857d3323a54236fac8ecdf3 100644 (file)
@@ -719,7 +719,8 @@ PHP_RSHUTDOWN_FUNCTION(basic)
        /* Check if locale was changed and change it back
           to the value in startup environment */
        if (BG(locale_string) != NULL) {
-               setlocale(LC_ALL, "");
+               setlocale(LC_ALL, "C");
+               setlocale(LC_CTYPE, "");
        }
        STR_FREE(BG(locale_string));