Merge from 5.2:

Improve tolower()-related functions on Windows and VC2005 by caching locale and using
tolower_l function.
This commit is contained in:
Stanislav Malyshev 2006-12-05 02:55:27 +00:00
parent bc07f14f7a
commit 40b496d63f
5 changed files with 38 additions and 6 deletions

View file

@ -4164,6 +4164,7 @@ PHP_RSHUTDOWN_FUNCTION(basic)
if (BG(locale_string) != NULL) {
setlocale(LC_ALL, "C");
setlocale(LC_CTYPE, "");
zend_update_current_locale();
}
STR_FREE(BG(locale_string));
BG(locale_string) = NULL;