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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2022 The PHP Group
All rights reserved.
Last updated: Tue Sep 27 20:03:57 2022 UTC