|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: z dot figura12 at gmail dot com
New email:
PHP Version: OS:


 [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: Sun Oct 02 07:03:44 2022 UTC