]> granicus.if.org Git - php/commit
Don't respect mbstring.internal_encoding in htmlentities()
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 7 May 2020 13:18:52 +0000 (15:18 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 7 May 2020 13:54:54 +0000 (15:54 +0200)
commit4a512625a0b5b81094e2132fc508e167d4d08e8c
tree5b292c30b7b7786cee0ad62346aebdfe55917251
parentc50cfc4d3d60e69040c9d2f3836b12e886b587ac
Don't respect mbstring.internal_encoding in htmlentities()

htmlentities() has nothing to do with mbstring and should not
depend on its ini settings. It should only respect the global
default_charset and internal_encoding settings. This is exactly
why they were introduced...
ext/standard/html.c
ext/standard/tests/strings/htmlentities25.phpt [new file with mode: 0644]