@@ 2817-2821 (lines=5) @@ | ||
2814 | ||
2815 | // ----- Creates a compressed temporary file |
|
2816 | $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.gz'; |
|
2817 | if (($v_file_compressed = @gzopen($v_gzip_temp_name, "wb")) == 0) { |
|
2818 | fclose($v_file); |
|
2819 | PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary write mode'); |
|
2820 | return PclZip::errorCode(); |
|
2821 | } |
|
2822 | ||
2823 | // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks |
|
2824 | $v_size = filesize($p_filename); |
|
@@ 3973-3977 (lines=5) @@ | ||
3970 | ||
3971 | // ----- Creates a temporary file |
|
3972 | $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.gz'; |
|
3973 | if (($v_dest_file = @fopen($v_gzip_temp_name, "wb")) == 0) { |
|
3974 | fclose($v_file); |
|
3975 | PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary write mode'); |
|
3976 | return PclZip::errorCode(); |
|
3977 | } |
|
3978 | ||
3979 | ||
3980 | // ----- Write gz file format header |
|
@@ 4009-4014 (lines=6) @@ | ||
4006 | } |
|
4007 | ||
4008 | // ----- Open the temporary gz file |
|
4009 | if (($v_src_file = @gzopen($v_gzip_temp_name, 'rb')) == 0) { |
|
4010 | @fclose($v_dest_file); |
|
4011 | $p_entry['status'] = "read_error"; |
|
4012 | PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode'); |
|
4013 | return PclZip::errorCode(); |
|
4014 | } |
|
4015 | ||
4016 | ||
4017 | // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks |