diff options
author | Sergei Turchanov <turchanov@farpost.com> | 2019-08-29 17:29:19 +1000 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-12-20 11:22:59 +0100 |
commit | c62cd9a43ad97aa279615b21f7cb5f1646f52d80 (patch) | |
tree | 2cf838ada7ac80c90d24f7337faedf1049287902 /ext/xml/php_xml.h | |
parent | cbb0efaeeb265ff8026dee1d049d57a8d2b5c133 (diff) | |
download | php-git-c62cd9a43ad97aa279615b21f7cb5f1646f52d80.tar.gz |
Fix #74170: locale information change after mime_content_type
Some functions in libmagic (distributed with fileinfo extension) perform this sequence of calls:
func() {
setlocale(LC_TYPE, "C")
.. do some work ..
setlocale(LC_TYPE, "")
}
It effectively resets LC_TYPE if it that was set before the function call.
To avoid manipulations with current locale at all, the problematic functions
were modified to use locale-independent functions.
Diffstat (limited to 'ext/xml/php_xml.h')
0 files changed, 0 insertions, 0 deletions