ID:               46541
 User updated by:  adrien at frenchcomp dot net
 Reported By:      adrien at frenchcomp dot net
 Status:           Open
 Bug Type:         mbstring related
 Operating System: Windows XP SP2
 PHP Version:      5.2.6
 New Comment:

Actually, just doing "mb_convert_case" works, but it does not work into
a switch/case structure :


 case 'Name':
 return mb_convert_case($data, MB_CASE_TITLE, "UTF-8");
 break;


When PHP executes this part of code several times (I mean, I launch
this switch/case on a list of 50  'Name' elements.


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

[2008-11-11 09:15:02] adrien at frenchcomp dot net

Description:
------------
I am using PHP under windows (WAMP 2.0, default configuration, with
XDebug enabled).

Everything runs under UTF-8 encoding (MySQL, File, Apache...) and when
I try to launch this following line :

My apache server is restarted.

Reproduce code:
---------------
// $data is a string got from Database
mb_convert_case($data, MB_CASE_TITLE);

// $data is a string got from Database
mb_convert_case($data, MB_CASE_TITLE, "UTF-8");

Expected result:
----------------
I expect to get the string with Title case.

Actual result:
--------------
Apache restarts


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


-- 
Edit this bug report at http://bugs.php.net/?id=46541&edit=1

Reply via email to