Bug #79512 [Opn->Fbk]: This function https://www.php.net/manual/en/function.ctype-upper.php, I realize

From: Date: Thu, 23 Apr 2020 09:26:31 +0000
Subject: Bug #79512 [Opn->Fbk]: This function https://www.php.net/manual/en/function.ctype-upper.php, I realize
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226738@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79512&edit=1 ID: 79512 Updated by: cmb@php.net Reported by: chikymanzanares at gmail dot com Summary: This function https://www.php.net/manual/en/function.ctype-upper.php, I realize -Status: Open +Status: Feedback Type: Bug Package: Unknown/Other Function PHP Version: 7.4.5 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: 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> Previous Comments: ------------------------------------------------------------------------ [2020-04-23 09:19:57] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79512&edit=1

« previous php.bugs (#226738) next »