php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79512 This function https://www.php.net/manual/en/function.ctype-upper.php, I realize
Submitted: 2020-04-23 09:19 UTC Modified: 2020-05-03 04:22 UTC
From: chikymanzanares at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: Unknown/Other Function
PHP Version: 7.4.5 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chikymanzanares at gmail dot com
New email:
PHP Version: OS:

 

 [2020-04-23 09:19 UTC] chikymanzanares at gmail dot com
Description:
------------
This function https://www.php.net/manual/en/function.ctype-upper.php, I realized failed for tildes




Test script:
---------------
if (ctype_upper ( 'Ó' ))
{
    echo 'upper';
} else {
    echo 'not upper';
}


not upper


this is uppercase in Spanish language por instance.


Expected result:
----------------
 I expect

upper





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-04-23 09:26 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-04-23 09:26 UTC] cmb@php.net
From the manual[1]:

| Returns TRUE if every character in text is an uppercase letter
| in the current locale.

Do you have a proper locale set?

[1] <https://www.php.net/manual/en/function.ctype-upper.php>
 [2020-05-03 04:22 UTC] php-bugs at lists dot php dot net
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 "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 05:01:31 2024 UTC