diff options
author | Jouni Ahto <jah@php.net> | 2000-06-05 18:47:34 +0000 |
---|---|---|
committer | Jouni Ahto <jah@php.net> | 2000-06-05 18:47:34 +0000 |
commit | 9d2bcf2bd09e7e55fe7d804da27afbe5c2aa71b8 (patch) | |
tree | d4e71c72a4bed9bc623e68d4839fcfe3159f9959 | |
parent | 194e8828a10b4d90e3b742911836c9248d2cd632 (diff) | |
download | php-git-9d2bcf2bd09e7e55fe7d804da27afbe5c2aa71b8.tar.gz |
- Restore locale settings to state they were at module startup if they
were changed.
-rw-r--r-- | ext/standard/basic_functions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index b25f733611..81f6364488 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -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)); |