]> granicus.if.org Git - php/commit
Fix #79986: str_ireplace bug with diacritics characters
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 18 Aug 2020 11:24:17 +0000 (13:24 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 24 Aug 2020 09:08:48 +0000 (11:08 +0200)
commit844a2dd6ac9e411e4f24d3a0beab9a23e820325c
treef9350311d768c018a417966b6b490f2dc6914326
parentfcd26ffcc3f3a1ce5e5bd78afd89c484e206e3ea
Fix #79986: str_ireplace bug with diacritics characters

`tolower()` returns an `int`, so we must not convert to `char` which
may be `signed` and as such may be subject to overflow (actually,
implementation defined behavior).

Closes GH-6007
NEWS
ext/standard/string.c
ext/standard/tests/strings/bug79986.phpt [new file with mode: 0644]