Platonides wrote:
Tim Starling wrote:
Replied on commons-l and fixed for default MediaWiki installations in r39203.
-- Tim Starling
Note that by forbidding zip based files, you're also blocking openoffice ones. Wouldn't be preferable to look for clearer jar signs, such as the presence of a manifest?
I made a jar just now with no manifest file, it worked just fine. I suppose you'd have to bundle a complete Zip file parser, like the one in PEAR, and then use it to search the directory for *.class files.
The hard part is working out exactly how Java works, so that you can match its algorithm in pure PHP. It's not going to be fast or pretty.
-- Tim Starling