@@ 4879-4887 (lines=9) @@ | ||
4876 | unset($v_local_header); |
|
4877 | ||
4878 | // ----- Write the file header |
|
4879 | if (($v_result = $v_temp_zip->privWriteFileHeader($v_header_list[$i])) != 1) { |
|
4880 | // ----- Close the zip file |
|
4881 | $this->privCloseFd(); |
|
4882 | $v_temp_zip->privCloseFd(); |
|
4883 | @unlink($v_zip_temp_name); |
|
4884 | ||
4885 | // ----- Return |
|
4886 | return $v_result; |
|
4887 | } |
|
4888 | ||
4889 | // ----- Read/write the data block |
|
4890 | if (($v_result = PclZipUtilCopyBlock($this->zip_fd, $v_temp_zip->zip_fd, $v_header_list[$i]['compressed_size'])) != 1) { |
|
@@ 4907-4914 (lines=8) @@ | ||
4904 | // ----- Re-Create the Central Dir files header |
|
4905 | for ($i=0; $i<sizeof($v_header_list); $i++) { |
|
4906 | // ----- Create the file header |
|
4907 | if (($v_result = $v_temp_zip->privWriteCentralFileHeader($v_header_list[$i])) != 1) { |
|
4908 | $v_temp_zip->privCloseFd(); |
|
4909 | $this->privCloseFd(); |
|
4910 | @unlink($v_zip_temp_name); |
|
4911 | ||
4912 | // ----- Return |
|
4913 | return $v_result; |
|
4914 | } |
|
4915 | ||
4916 | // ----- Transform the header to a 'usable' info |
|
4917 | $v_temp_zip->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); |