We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac69320 commit fa78da9Copy full SHA for fa78da9
ext/standard/string.c
@@ -1439,7 +1439,7 @@ PHPAPI zend_string *php_string_toupper(zend_string *s)
1439
e = c + ZSTR_LEN(s);
1440
1441
while (c < e) {
1442
- if (!isupper(*c)) {
+ if (islower(*c)) {
1443
register unsigned char *r;
1444
zend_string *res = zend_string_alloc(ZSTR_LEN(s), 0);
1445
@@ -1508,7 +1508,7 @@ PHPAPI zend_string *php_string_tolower(zend_string *s)
1508
1509
1510
1511
- if (!islower(*c)) {
+ if (isupper(*c)) {
1512
1513
1514
0 commit comments