stas            Mon Dec  4 18:37:15 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/main       main.c 
  Log:
  Improve tolower()-related functions on Windows and VC2005 by caching locale 
and using
  tolower_l function.
  # Gives 10-18% speedup on bench.php
  # Does not change behaviour for non-windows
  
  
http://cvs.php.net/viewvc.cgi/php-src/main/main.c?r1=1.640.2.23.2.20&r2=1.640.2.23.2.21&diff_format=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.640.2.23.2.20 php-src/main/main.c:1.640.2.23.2.21
--- php-src/main/main.c:1.640.2.23.2.20 Mon Dec  4 15:58:48 2006
+++ php-src/main/main.c Mon Dec  4 18:37:15 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: main.c,v 1.640.2.23.2.20 2006/12/04 15:58:48 tony2001 Exp $ */
+/* $Id: main.c,v 1.640.2.23.2.21 2006/12/04 18:37:15 stas Exp $ */
 
 /* {{{ includes
  */
@@ -1502,6 +1502,7 @@
 
 #if HAVE_SETLOCALE
        setlocale(LC_CTYPE, "");
+       zend_update_current_locale();
 #endif
 
 #if HAVE_TZSET

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to