ID:               49238
 User updated by:  tony at marston-home dot demon dot co dot uk
 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:

There was nothing about this in the contents of the patch as it still
shows that 'func_overload' is linked to PHP_INI_PERDIR, so it would
appear that the decision was made "behind the scenes", in secret,
without telling anyone. There was no mention of this in the release
notes, and the documentation has NEVER been updated to reflect this
decision even after 6 months has passed.

This feature has been available since version 4.2.0, now suddenly it
does not work. If my site is on a shared server, meaning that I cannot
change the contents of either php.ini or httpd.conf, and func_overload
is set to 0, then how on earth can I turn it on?


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

[2009-08-13 09:00:04] j...@php.net

Yes, the bug report itself is vague, but it was also mentioned in the
commit message that changes this.. :)

------------------------------------------------------------------------

[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] j...@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

Reply via email to