ID:               49238
 Updated by:       j...@php.net
 Reported By:      tony at marston-home dot demon dot co dot uk
-Status:           Open
+Status:           Bogus
 Bug Type:         mbstring related
 Operating System: Windows XP
 PHP Version:      5.2.10
 New Comment:

It can only be set in php.ini. Not a bug. See also bug #49189 and next

time: SEARCH first before submitting another bug about same issue.


Previous Comments:
------------------------------------------------------------------------

[2009-08-12 17:14:58] tony at marston-home dot demon dot co dot uk

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 this bug report at http://bugs.php.net/?id=49238&edit=1

Reply via email to