From: tony at marston-home dot demon dot co dot uk Operating system: Windows XP PHP version: 5.2.10 PHP Bug Type: mbstring related Bug description: mbstring.func_overload cannot be set in htaccess
Description: ------------ My PHP.INI file contains the following: ;mbstring.internal_encoding EUC-JP ;mbstring.func_overload = 0 My htaccess file contains the following: php_value mbstring.internal_encoding "UTF-8" php_value mbstring.func_overload 2 When I run phpinfo() it shows that the value for mbstring.internal_encoding has been changed, but the value for mbstring.func_overload is still 0. When I try to run strtoupper() on a string which contains a multibyte character the result is incorrect. Reproduce code: --------------- $upper = strtoupper('würzburg'); if ($upper != 'WÜRZBURG') { echo 'test failed!'; } // if Expected result: ---------------- I expect the above code to work without the 'test failed!' message. Actual result: -------------- $upper contains 'WÌRZBURG' -- Edit bug report at http://bugs.php.net/?id=49238&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49238&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49238&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49238&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49238&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49238&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49238&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49238&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49238&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49238&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49238&r=support Expected behavior: http://bugs.php.net/fix.php?id=49238&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49238&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49238&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49238&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49238&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49238&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49238&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49238&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49238&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49238&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49238&r=mysqlcfg