php-src/ext/fileinfo/tests
Sergei Turchanov c62cd9a43a 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.
2019-12-20 11:22:59 +01:00
..
resources Add tests from fix #78183 from PHP-7.2 2019-06-29 13:29:53 +02:00
67647.mov Fixed bug #67647 Bundled libmagic 5.17 does not detect quicktime files correctly 2015-01-22 11:48:11 +01:00
68398.zip
68731.gif Fixed bug #68731 finfo_buffer doesn't extract the correct mime with some gifs 2015-01-22 12:26:50 +01:00
bug57547.phpt add test for bug #57547 2016-11-24 19:25:47 +01:00
bug61173.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug61964-mb.phpt fix tests 2016-11-24 14:36:49 +01:00
bug61964.phpt fix tests 2016-11-24 14:36:49 +01:00
bug67516.gif Add test for bug #67516 2016-11-24 17:59:09 +01:00
bug67516.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug67647-mb.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug67647.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug68398.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug68731.phpt Fixed bug #68731 finfo_buffer doesn't extract the correct mime with some gifs 2015-01-22 12:26:50 +01:00
bug68735.jpg
bug68735.phpt fix test outputs 2015-03-08 19:47:34 +01:00
bug68819_001.phpt Fix bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault) 2015-04-11 16:53:21 -07:00
bug68819_002.phpt Fix intermittent failure of bug_68819_002.phpt 2016-03-02 00:34:36 +01:00
bug68996.phpt fix test to not to cause false positives 2016-03-31 01:29:05 +02:00
bug69107.phpt Add test for bug #69107: finfo no longer detects PHP files 2016-08-08 18:43:33 +02:00
bug69320.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug71434.phpt Fixed bug #71434 (finfo throws notice for specific python file) 2016-01-25 11:40:08 +08:00
bug71527-mb.phpt Use bool instead of boolean while throwing a type error 2018-02-04 23:09:40 +01:00
bug71527.magic Fixed bug #71527 Buffer over-write in finfo_open with malformed magic file 2016-03-29 13:10:39 +02:00
bug71527.phpt Use bool instead of boolean while throwing a type error 2018-02-04 23:09:40 +01:00
bug71527私はガラスを食べられます.magic Fixed the UTF-8 and long path support in the streams on Windows. 2016-06-20 12:45:39 +02:00
bug74170.phpt Fix #74170: locale information change after mime_content_type 2019-12-20 11:22:59 +01:00
cve-2014-1943-mb.phpt fix tests 2016-11-24 14:36:49 +01:00
cve-2014-1943.phpt fix tests 2016-11-24 14:36:49 +01:00
cve-2014-1943私はガラスを食べられます.data Fixed the UTF-8 and long path support in the streams on Windows. 2016-06-20 12:45:39 +02:00
cve-2014-1943私はガラスを食べられます.magic Fixed the UTF-8 and long path support in the streams on Windows. 2016-06-20 12:45:39 +02:00
cve-2014-3538-mb.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
cve-2014-3538-nojit.phpt Fork test with pcre.jit=0 2018-11-10 20:06:47 +01:00
cve-2014-3538.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
cve-2014-3538私はガラスを食べられます.data Fixed the UTF-8 and long path support in the streams on Windows. 2016-06-20 12:45:39 +02:00
finfo_buffer_basic-mb.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_buffer_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_buffer_error.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_buffer_variation1-mb.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_buffer_variation1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_close_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_close_error.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_extension_flag.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
finfo_file_001.phpt
finfo_file_002.phpt Fix typo 2019-06-29 13:30:35 +02:00
finfo_file_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_file_regex.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_file_stream_001.phpt Give a reason why the test was skipped 2018-07-22 16:41:41 -03:00
finfo_open_001.phpt
finfo_open_002.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
finfo_open_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_open_error.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_open_variation1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_phpinfo_basic.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
finfo_set_flags_basic-mb.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_set_flags_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
magic Fixed bug #77346 webm files incorrectly detected as application/octet-stream 2018-12-28 13:25:40 +01:00
magic私はガラスを食べられます Fixed bug #77346 webm files incorrectly detected as application/octet-stream 2018-12-28 13:25:40 +01:00
mime_content_type_001.phpt
mime_content_type_002.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
precedural_finfo_in_method.phpt Add missing SKIPIF sections 2018-02-03 13:54:34 +01:00
skipif.inc Give a reason why the test was skipped 2018-07-22 16:41:41 -03:00