|
@@ 2702-2716 (lines=15) @@
|
| 2699 |
|
$p_header['crc'] = @crc32($v_content);
|
| 2700 |
|
|
| 2701 |
|
// ----- Look for no compression
|
| 2702 |
|
if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) {
|
| 2703 |
|
// ----- Set header parameters
|
| 2704 |
|
$p_header['compressed_size'] = $p_header['size'];
|
| 2705 |
|
$p_header['compression'] = 0;
|
| 2706 |
|
}
|
| 2707 |
|
|
| 2708 |
|
// ----- Look for normal compression
|
| 2709 |
|
else {
|
| 2710 |
|
// ----- Compress the content
|
| 2711 |
|
$v_content = @gzdeflate($v_content);
|
| 2712 |
|
|
| 2713 |
|
// ----- Set header parameters
|
| 2714 |
|
$p_header['compressed_size'] = strlen($v_content);
|
| 2715 |
|
$p_header['compression'] = 8;
|
| 2716 |
|
}
|
| 2717 |
|
|
| 2718 |
|
// ----- Call the header generation
|
| 2719 |
|
if (($v_result = $this->privWriteFileHeader($p_header)) != 1) {
|
|
@@ 2740-2754 (lines=15) @@
|
| 2737 |
|
$p_header['crc'] = @crc32($v_content);
|
| 2738 |
|
|
| 2739 |
|
// ----- Look for no compression
|
| 2740 |
|
if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) {
|
| 2741 |
|
// ----- Set header parameters
|
| 2742 |
|
$p_header['compressed_size'] = $p_header['size'];
|
| 2743 |
|
$p_header['compression'] = 0;
|
| 2744 |
|
}
|
| 2745 |
|
|
| 2746 |
|
// ----- Look for normal compression
|
| 2747 |
|
else {
|
| 2748 |
|
// ----- Compress the content
|
| 2749 |
|
$v_content = @gzdeflate($v_content);
|
| 2750 |
|
|
| 2751 |
|
// ----- Set header parameters
|
| 2752 |
|
$p_header['compressed_size'] = strlen($v_content);
|
| 2753 |
|
$p_header['compression'] = 8;
|
| 2754 |
|
}
|
| 2755 |
|
|
| 2756 |
|
// ----- Call the header generation
|
| 2757 |
|
if (($v_result = $this->privWriteFileHeader($p_header)) != 1) {
|