I'm writing an unpacker of MSZIP blocks that use deflate compression.
I faced a problem and created a question on stackoverflow (http://stackoverflow.com/questions/41653663/is-there-something-special-in-windows-mszip-format-or-cfdata-in-cab-files), where maintainer of zlib library adviced to use `dictionary` option to pass raw uncompressed data of previous block to decompress next block of data. But Mark Adler says that this option don't work in current php realisation.
> Looks like a bug. I can't get the dictionary option to work at all, even with strings that don't have nulls.
but I still get a data error upon subsequent inflate_add() … so not sure whether the repro is broken or something else in the code.
Thanks for attention. Can you test other data set?
> The current PHP code appears to be calling inflateSetDictionary() only if Z_DICT is returned by deflate. The PHP code should also call inflateSetDictionary() after calling inflateInit2() if raw inflate is being requested.
Can you try suggestion that Mark made and update zlib module?
What about thinking about this problem?
So, if I could send PR to php source, I'd send a fix.
According to Mark's opinion, it's not very difficult to update source of zlib extension to fix decompressor. May I wait for updates on this issue?
Nobody interesting in fixing this bug at all?
> So, if I could send PR to php source, I'd send a fix.