@@ 912-916 (lines=5) @@ | ||
909 | $huffman_encoded = true; |
|
910 | } |
|
911 | ||
912 | if ($huffman_encoded) { |
|
913 | if (false !== ($decompressed = @gzinflate(substr($gzData, 2)))) { |
|
914 | return $decompressed; |
|
915 | } |
|
916 | } |
|
917 | ||
918 | if ("\x50\x4b\x03\x04" == substr($gzData, 0, 4)) { |
|
919 | // ZIP file format header |
|
@@ 940-942 (lines=3) @@ | ||
937 | // Determine the first byte of data, based on the above ZIP header |
|
938 | // offsets: |
|
939 | $first_file_start = array_sum(unpack('v2', substr($gzData, 26, 4))); |
|
940 | if (false !== ($decompressed = @gzinflate(substr($gzData, 30 + $first_file_start)))) { |
|
941 | return $decompressed; |
|
942 | } |
|
943 | return false; |
|
944 | } |
|
945 |