#46541 [Opn->Fbk]: Apache restarts
| From: | jani@php.net | Date: | Tue, 11 Nov 2008 10:27:47 +0000 |
| Subject: | #46541 [Opn->Fbk]: Apache restarts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130867@lists.php.net to get a copy of this message | ||
ID: 46541
Updated by: jani@php.net
Reported By: adrien at frenchcomp dot net
-Status: Open
+Status: Feedback
Bug Type: mbstring related
Operating System: Windows XP SP2
PHP Version: 5.2.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2008-11-11 09:24:03] adrien at frenchcomp dot net
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.
------------------------------------------------------------------------
[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