|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24359 Function strtolower
Submitted: 2003-06-27 09:54 UTC Modified: 2003-09-18 14:46 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: daniel at adsdigita dot com dot br Assigned:
Status: No Feedback Package: Strings related
PHP Version: 4.3.3 OS: Windows / Linux
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
11 + 49 = ?
Subscribe to this entry?

 [2003-06-27 09:54 UTC] daniel at adsdigita dot com dot br

I leave in Brazil and in our language we have
de caracter "?" (means IS in English), the matter of
fact is: strtolower couldn't work in this caracter ("?") to change it in "?"

Reproduce code:
echo strtolower("?"); 

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-27 10:05 UTC]
Works fine here:

[derick@kossu derick]$ php
echo strtolower("?"); 

Did you select the correct locale with setlocale() ?
 [2003-07-02 22:17 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2003-09-18 14:46 UTC]
Verified with 4.3.3 and german umlauts:

strtolower("S?DSTADT") results in "s?dstadt"
 [2008-08-20 08:07 UTC] c dot leborgne at yahoo dot fr
I'm french on unix and PHP 4.2.3
 and I got the same bug whith this function

but, it works if you do :

$val = " NUM?RO ";
$tab=array("?" => "?", ..........);
$str =  strtolower(strtr($val,$tab));

voila c est fini :)
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Dec 04 02:05:53 2022 UTC