summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/php_functions.c
diff options
context:
space:
mode:
authorSATO Kentaro <kentaro@ranvis.com>2016-07-01 22:41:53 +0900
committerSATO Kentaro <kentaro@ranvis.com>2016-07-01 22:45:37 +0900
commitdf683fa3b0a66d7626d6720858f309da9e7880e5 (patch)
treee02acbc47e38c61a0b69b6525af62c15b0bfd436 /sapi/apache2handler/php_functions.c
parentb8487b6a7dcf102dd2015105b54279dad701b97b (diff)
downloadphp-git-df683fa3b0a66d7626d6720858f309da9e7880e5.tar.gz
Fix #68447: grapheme_extract take an extra trailing character
grapheme_extract() converts UTF-8 string in the argument to UTF-16 to iterate through graphemes, and count each UTF-16 character as one Unicode character, which is not correct for UTF-16 surrogate pairs. The patch removes the conversion and counts UTF-8 directly if needed.
Diffstat (limited to 'sapi/apache2handler/php_functions.c')
0 files changed, 0 insertions, 0 deletions