summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-04-30 16:10:04 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-06-11 08:42:32 +0200
commitf3ff72e54b2f6c2fa1ac924ad95455a5309099d5 (patch)
tree6717ebfa30359b2d99f256b41b4e1635d1c6fb4a /NEWS
parent199eb2b110aa57c423bada077f6c9e71c5d17daf (diff)
downloadphp-git-f3ff72e54b2f6c2fa1ac924ad95455a5309099d5.tar.gz
Fix #77937: preg_match failed
On some recent Windows systems, ext\pcre\tests\locales.phpt fails, because 'pt_PT' is accepted by `setlocale()`, but not properly supported by the ctype functions, which are used internally by PCRE2 to build the localized character tables. Since there appears to be no way to properly check whether a given locale is fully supported, but we want to minimize BC impact, we filter out typical Unix locale names, except for a few cases which have already been properly supported on Windows. This way code like setlocale(LC_ALL, 'de_DE.UTF-8', 'de_DE', 'German_Germany.1252'); should work like on older Windows systems. It should be noted that the locale names causing trouble are not (yet) documented as valid names anyway, see <https://docs.microsoft.com/en-us/cpp/c-runtime-library/locale-names-languages-and-country-region-strings?view=vs-2019>.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 1b7e493d19..4da0c146fc 100644
--- a/NEWS
+++ b/NEWS
@@ -27,6 +27,7 @@ PHP NEWS
- Standard:
. Fixed bug #77135 (Extract with EXTR_SKIP should skip $this).
(Craig Duncan, Dmitry)
+ . Fixed bug ##77937 (preg_match failed). (cmb, Anatol)
- Zip:
. Fixed bug #76345 (zip.h not found). (Michael Maroszek)