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
 [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

Pull Requests

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: Sat Dec 21 14:01:32 2024 UTC