wiki.techinc.nl/tests/phpunit/data
Tim Starling d8e06a46a8 MimeAnalyzer: fix ZIP parsing failure
unpack() actually returns an array with indexes starting from 1, not
zero, so unpack(...)[0] gives a notice and always returns null. It is
lucky that ZIPs normally have zero-length comments, so this would have
had little impact on file type detection aside from log spam.

Also, add a check to make sure the unpack() will not read beyond
the end of the file. Without this, unpack() could generate a warning.

The bug was introduced by me in f12db38048.

Add tests. The test files were generated by appending an EOCDR signature
and some extra bytes to 1bit-png.png.

Bug: T223728
Change-Id: I6fab63102d1d8eea92cdcce5ab6d1eb747a0a890
2019-07-25 13:40:18 +10:00
..
autoloader Improve AutoLoader test coverage 2018-05-26 21:29:36 -07:00
categoriesrdf Fix handling categorization changes 2018-08-14 00:40:08 +00:00
composer Use SPDX 3.0 license identifier 2018-03-18 18:08:22 +00:00
css
cssmin CSSMin: Remove XML declaration from SVGs 2018-01-11 19:28:15 -08:00
db Add a few schemas to SQLite tests 2017-10-13 19:39:06 +00:00
filecontentshasher
filerepo
gitinfo
import
less resourceloader: Add test case for ResourceLoader::getLessCompiler 2018-05-19 23:06:54 +00:00
localisationcache Don't fallback from uk to ru 2016-11-23 19:24:54 +02:00
media MimeAnalyzer: fix ZIP parsing failure 2019-07-25 13:40:18 +10:00
MSCompoundFileReader Better detection for old MS Office files 2019-01-23 09:23:17 +11:00
parser
registration registration: Allow @-prefixed keys in manifest_version 2 2019-02-12 18:50:14 -08:00
resourceloader ResourceLoader: Add support for packageFiles 2019-02-05 22:05:02 +00:00
rlfilepath Allow skins/extensions to define custom OOUI themes 2019-07-10 22:08:14 +02:00
templates TemplateParser: Pass FLAG_MUSTACHELOOKUP to enable parent context access 2018-09-04 12:39:34 -07:00
upload Relax HTML sniffing checks on image upload 2019-06-07 14:21:00 -07:00
zip