|
@@ 939-943 (lines=5) @@
|
| 936 |
|
$huffman_encoded = true; |
| 937 |
|
} |
| 938 |
|
|
| 939 |
|
if ($huffman_encoded) { |
| 940 |
|
if (false !== ($decompressed = @gzinflate(substr($gzData, 2)))) { |
| 941 |
|
return $decompressed; |
| 942 |
|
} |
| 943 |
|
} |
| 944 |
|
|
| 945 |
|
if ("\x50\x4b\x03\x04" == substr($gzData, 0, 4)) { |
| 946 |
|
// ZIP file format header |
|
@@ 967-969 (lines=3) @@
|
| 964 |
|
// Determine the first byte of data, based on the above ZIP header |
| 965 |
|
// offsets: |
| 966 |
|
$first_file_start = array_sum(unpack('v2', substr($gzData, 26, 4))); |
| 967 |
|
if (false !== ($decompressed = @gzinflate(substr($gzData, 30 + $first_file_start)))) { |
| 968 |
|
return $decompressed; |
| 969 |
|
} |
| 970 |
|
return false; |
| 971 |
|
} |
| 972 |
|
|