Last active
March 27, 2018 13:59
-
-
Save joelwurtz/c06bcfbb6766cb2b1d53 to your computer and use it in GitHub Desktop.
Zlib Stream PHP WTF :/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Filter for zlib compress (RFC 1950) | |
stream_filter_append($resource, 'zlib.deflate', ['window' => 15]); | |
// Filter for deflate (RFC 1951) | |
stream_filter_append($resource, 'zlib.deflate', ['window' => -15]); | |
// Filter for gzip (RFC 1952) | |
stream_filter_append($resource, 'zlib.deflate', ['window' => 31); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment