I wrote a small patch to the zlib extension to expose more inflate status
information. It lets you figure out the length of compressed data when it's
prepended to something else. The pull request is here:
https://github.com/php/php-src/pull/2338. The actual changes are not large;
mostly just tests for the two added functions. I've included documentation
that could go on php.net too.
Maybe I could get some opinions as to whether this could be merged? I'm
posting here as @krakjoe suggested since there wasn't much feedback on
I'd like to get some feedback for my pull request:
https://github.com/php/php-src/pull/2338. It allows finding the length of
zlib compressed data when it's prepended to arbitrary data. Please comment.