|  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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 21:01:33 2024 UTC