]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.2'
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 23 Jul 2017 13:36:25 +0000 (15:36 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 23 Jul 2017 13:36:25 +0000 (15:36 +0200)
1  2 
ext/mbstring/php_unicode.c

index 208c10319e00321b86d9adf5f274c7a3ec8ac765,485988fe35d91d57a6cce471daa2fc899d653c68..2baa4690c9f5e35b1aa805c3da4ae917336900ec
@@@ -161,9 -173,14 +162,9 @@@ MBSTRING_API unsigned long php_unicode_
                /*
                 * The character is lower case.
                 */
-               field = 2;
+               field = 1;
                l = _uccase_len[0];
-               r = (l + _uccase_len[1]) - 3;
+               r = (l + _uccase_len[1]) - 1;
 -
 -              if (enc == mbfl_no_encoding_8859_9) {
 -                      return php_turkish_toupper(code, l, r, field);
 -              }
 -
        } else {
                /*
                 * The character is title case.
@@@ -200,7 -206,12 +201,7 @@@ MBSTRING_API unsigned long php_unicode_
                 */
                field = 1;
                l = 0;
-               r = _uccase_len[0] - 3;
+               r = _uccase_len[0] - 1;
 -
 -              if (enc == mbfl_no_encoding_8859_9) {
 -                      return php_turkish_tolower(code, l, r, field);
 -              }
 -
        } else {
                /*
                 * The character is title case.