|
@@ 2686-2700 (lines=15) @@
|
| 2683 |
|
$p_header['crc'] = @crc32($v_content); |
| 2684 |
|
|
| 2685 |
|
// ----- Look for no compression |
| 2686 |
|
if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) { |
| 2687 |
|
// ----- Set header parameters |
| 2688 |
|
$p_header['compressed_size'] = $p_header['size']; |
| 2689 |
|
$p_header['compression'] = 0; |
| 2690 |
|
} |
| 2691 |
|
|
| 2692 |
|
// ----- Look for normal compression |
| 2693 |
|
else { |
| 2694 |
|
// ----- Compress the content |
| 2695 |
|
$v_content = @gzdeflate($v_content); |
| 2696 |
|
|
| 2697 |
|
// ----- Set header parameters |
| 2698 |
|
$p_header['compressed_size'] = strlen($v_content); |
| 2699 |
|
$p_header['compression'] = 8; |
| 2700 |
|
} |
| 2701 |
|
|
| 2702 |
|
// ----- Call the header generation |
| 2703 |
|
if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { |
|
@@ 2724-2738 (lines=15) @@
|
| 2721 |
|
$p_header['crc'] = @crc32($v_content); |
| 2722 |
|
|
| 2723 |
|
// ----- Look for no compression |
| 2724 |
|
if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) { |
| 2725 |
|
// ----- Set header parameters |
| 2726 |
|
$p_header['compressed_size'] = $p_header['size']; |
| 2727 |
|
$p_header['compression'] = 0; |
| 2728 |
|
} |
| 2729 |
|
|
| 2730 |
|
// ----- Look for normal compression |
| 2731 |
|
else { |
| 2732 |
|
// ----- Compress the content |
| 2733 |
|
$v_content = @gzdeflate($v_content); |
| 2734 |
|
|
| 2735 |
|
// ----- Set header parameters |
| 2736 |
|
$p_header['compressed_size'] = strlen($v_content); |
| 2737 |
|
$p_header['compression'] = 8; |
| 2738 |
|
} |
| 2739 |
|
|
| 2740 |
|
// ----- Call the header generation |
| 2741 |
|
if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { |