|
@@ 4908-4916 (lines=9) @@
|
| 4905 |
|
unset($v_local_header);
|
| 4906 |
|
|
| 4907 |
|
// ----- Write the file header
|
| 4908 |
|
if (($v_result = $v_temp_zip->privWriteFileHeader($v_header_list[$i])) != 1) {
|
| 4909 |
|
// ----- Close the zip file
|
| 4910 |
|
$this->privCloseFd();
|
| 4911 |
|
$v_temp_zip->privCloseFd();
|
| 4912 |
|
@unlink($v_zip_temp_name);
|
| 4913 |
|
|
| 4914 |
|
// ----- Return
|
| 4915 |
|
return $v_result;
|
| 4916 |
|
}
|
| 4917 |
|
|
| 4918 |
|
// ----- Read/write the data block
|
| 4919 |
|
if (($v_result = PclZipUtilCopyBlock($this->zip_fd, $v_temp_zip->zip_fd, $v_header_list[$i]['compressed_size'])) != 1) {
|
|
@@ 4936-4943 (lines=8) @@
|
| 4933 |
|
// ----- Re-Create the Central Dir files header
|
| 4934 |
|
for ($i=0; $i<sizeof($v_header_list); $i++) {
|
| 4935 |
|
// ----- Create the file header
|
| 4936 |
|
if (($v_result = $v_temp_zip->privWriteCentralFileHeader($v_header_list[$i])) != 1) {
|
| 4937 |
|
$v_temp_zip->privCloseFd();
|
| 4938 |
|
$this->privCloseFd();
|
| 4939 |
|
@unlink($v_zip_temp_name);
|
| 4940 |
|
|
| 4941 |
|
// ----- Return
|
| 4942 |
|
return $v_result;
|
| 4943 |
|
}
|
| 4944 |
|
|
| 4945 |
|
// ----- Transform the header to a 'usable' info
|
| 4946 |
|
$v_temp_zip->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]);
|