From 0d56cd2dfc8a5d35f3e863ab4b4464f45ff0a07a Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 24 Nov 2008 21:23:45 +0000 Subject: [PATCH] MFB: Fixed bug #46626 (mb_convert_case does not handle apostrophe correctly) --- NEWS | 2 ++ ext/mbstring/php_unicode.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index d37db7a866..5cad7d0b2e 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,8 @@ PHP NEWS - Fixed memory leak inside readline_callback_handler_remove() function. (Felipe) - Fixed bug #46649 (Setting array element with that same array produces inconsistent results). (Arnaud) +- Fixed bug #46626 (mb_convert_case does not handle apostrophe correctly). + (Ilia) 20 Nov 2008, PHP 5.2.7RC4 - Added logging option for error_log to send directly to SAPI. (Stas) diff --git a/ext/mbstring/php_unicode.c b/ext/mbstring/php_unicode.c index d90cabb84d..038044b1b9 100644 --- a/ext/mbstring/php_unicode.c +++ b/ext/mbstring/php_unicode.c @@ -308,7 +308,7 @@ MBSTRING_API char *php_unicode_convert_case(int case_mode, char *srcstr, size_t for (i = 0; i < unicode_len; i+=4) { int res = php_unicode_is_prop( BE_ARY_TO_UINT32(&unicode_ptr[i]), - UC_MN|UC_ME|UC_CF|UC_LM|UC_SK|UC_LU|UC_LL|UC_LT, 0); + UC_MN|UC_ME|UC_CF|UC_LM|UC_SK|UC_LU|UC_LL|UC_LT|UC_PO|UC_OS, 0); if (mode) { if (res) { UINT32_TO_BE_ARY(&unicode_ptr[i], -- 2.50.1