#49238 [Bgs]: mbstring.func_overload cannot be set in htaccess
ID: 49238
Updated by: jani@php.net
Reported By: tony at marston-home dot demon dot co dot uk
Status: Bogus
Bug Type: mbstring related
Operating System: Windows XP
PHP Version: 5.2.10
New Comment:
Yes, the bug report itself is vague, but it was also mentioned in the
commit message that changes this.. :)
Previous Comments:
------------------------------------------------------------------------
[2009-08-12 18:42:08] tony at marston-home dot demon dot co dot uk
I DID search first on 'MBstring issues', but bug #49189 was catalogued
as a documentation issue, so how was I to spot it?
Bug #49189 refers to bug #43227 as "proof" (supposedly) that
mbstring.func_overload was changed from PHP_INI_PERDIR to
PHP_INI_SYSTEM, but it says no such thing. It simply says "try
mbstring.func_overload = 0 in your php.ini as a workaround"
------------------------------------------------------------------------
[2009-08-12 18:22:39] jani@php.net
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.
------------------------------------------------------------------------
[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
Thread (6 messages)