summaryrefslogtreecommitdiff
path: root/ext/fileinfo/tests
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2019-06-29 13:31:22 +0200
committerAnatol Belski <ab@php.net>2019-06-29 13:31:22 +0200
commit885cb79201130fc8a3f686a641d6a6be531f3219 (patch)
treedd8360cd5704f6890fecb265cad1f30070ef9c0e /ext/fileinfo/tests
parent82effb3fc7bcab0efcc343b3e03355f5f2f663c9 (diff)
parentb92669094767e54af3ef833f51072d53a8c788c0 (diff)
downloadphp-git-885cb79201130fc8a3f686a641d6a6be531f3219.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix typo Add tests from fix #78183 from PHP-7.2 Fix #78183: finfo_file shows wrong mime-type for .tga file
Diffstat (limited to 'ext/fileinfo/tests')
-rw-r--r--ext/fileinfo/tests/finfo_file_002.phpt2
-rw-r--r--ext/fileinfo/tests/resources/test.tgabin0 -> 19 bytes
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/fileinfo/tests/finfo_file_002.phpt b/ext/fileinfo/tests/finfo_file_002.phpt
index fff16b7796..aa870cdfab 100644
--- a/ext/fileinfo/tests/finfo_file_002.phpt
+++ b/ext/fileinfo/tests/finfo_file_002.phpt
@@ -39,6 +39,8 @@ array(%d) {
string(9) "image/png"
["%s/resources/test.ppt"]=>
string(29) "application/vnd.ms-powerpoint"
+ ["%s/resources/test.tga"]=>
+ string(11) "image/x-tga"
["%s/resources/test.webm"]=>
string(10) "video/webm"
}
diff --git a/ext/fileinfo/tests/resources/test.tga b/ext/fileinfo/tests/resources/test.tga
new file mode 100644
index 0000000000..e454f69ccc
--- /dev/null
+++ b/ext/fileinfo/tests/resources/test.tga
Binary files differ