|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69267 mb_strtolower fails on titlecase characters
Submitted: 2015-03-20 02:48 UTC Modified: -
Avg. Score:3.0 ± 2.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: z dot figura12 at gmail dot com Assigned:
Status: Closed Package: mbstring related
PHP Version: 5.5Git-2015-03-20 (Git) OS: Kubuntu 14.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
31 + 8 = ?
Subscribe to this entry?

 [2015-03-20 02:48 UTC] z dot figura12 at gmail dot com
Ancient Greek characters with hypogegrammene (ᾼ ῼ ῌ etc.) are classified as titlecase characters in Unicode, and because they are not marked as being capital letters, are ignored by mb_strtolower.

Test script:
echo mb_strtolower("ᾼ");

Expected result:

Actual result:


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-01 03:22 UTC] z dot figura12 at gmail dot com
After looking, there are actually two parts to this bug. One part is in PHP, and I was easily able to locate the error. However, this only fixed the characters Dž, Nj, Lj, Dz, whereas Greek characters with hypogegrammene were still broken.

The second part was traceable back to OpenLDAP. I have submitted a patch there and hope to see it accepted. I am not sure how to propagate this change to PHP, however.
 [2017-07-23 13:37 UTC]
Automatic comment on behalf of
Log: Fixed bug #69267 completely
 [2017-07-23 13:37 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Sep 30 06:05:54 2022 UTC