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