#46541 [Opn]: Apache restarts
| From: | adrien at frenchcomp dot net | Date: | Tue, 11 Nov 2008 09:24:03 +0000 |
| Subject: | #46541 [Opn]: Apache restarts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130865@lists.php.net to get a copy of this message | ||
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