|
@@ 3182-3191 (lines=10) @@
|
| 3179 |
|
|
| 3180 |
|
// ----- Go to beginning of Central Dir |
| 3181 |
|
@rewind($this->zip_fd); |
| 3182 |
|
if (@fseek($this->zip_fd, $v_central_dir['offset'])) |
| 3183 |
|
{ |
| 3184 |
|
$this->privSwapBackMagicQuotes(); |
| 3185 |
|
|
| 3186 |
|
// ----- Error log |
| 3187 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); |
| 3188 |
|
|
| 3189 |
|
// ----- Return |
| 3190 |
|
return PclZip::errorCode(); |
| 3191 |
|
} |
| 3192 |
|
|
| 3193 |
|
// ----- Read each entry |
| 3194 |
|
for ($i=0; $i<$v_central_dir['entries']; $i++) |
|
@@ 3337-3348 (lines=12) @@
|
| 3334 |
|
|
| 3335 |
|
// ----- Read next Central dir entry |
| 3336 |
|
@rewind($this->zip_fd); |
| 3337 |
|
if (@fseek($this->zip_fd, $v_pos_entry)) |
| 3338 |
|
{ |
| 3339 |
|
// ----- Close the zip file |
| 3340 |
|
$this->privCloseFd(); |
| 3341 |
|
$this->privSwapBackMagicQuotes(); |
| 3342 |
|
|
| 3343 |
|
// ----- Error log |
| 3344 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); |
| 3345 |
|
|
| 3346 |
|
// ----- Return |
| 3347 |
|
return PclZip::errorCode(); |
| 3348 |
|
} |
| 3349 |
|
|
| 3350 |
|
// ----- Read the file header |
| 3351 |
|
$v_header = array(); |
|
@@ 3498-3510 (lines=13) @@
|
| 3495 |
|
|
| 3496 |
|
// ----- Go to the file position |
| 3497 |
|
@rewind($this->zip_fd); |
| 3498 |
|
if (@fseek($this->zip_fd, $v_header['offset'])) |
| 3499 |
|
{ |
| 3500 |
|
// ----- Close the zip file |
| 3501 |
|
$this->privCloseFd(); |
| 3502 |
|
|
| 3503 |
|
$this->privSwapBackMagicQuotes(); |
| 3504 |
|
|
| 3505 |
|
// ----- Error log |
| 3506 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); |
| 3507 |
|
|
| 3508 |
|
// ----- Return |
| 3509 |
|
return PclZip::errorCode(); |
| 3510 |
|
} |
| 3511 |
|
|
| 3512 |
|
// ----- Look for extraction as string |
| 3513 |
|
if ($p_options[PCLZIP_OPT_EXTRACT_AS_STRING]) { |
|
@@ 4707-4717 (lines=11) @@
|
| 4704 |
|
// ----- Start at beginning of Central Dir |
| 4705 |
|
$v_pos_entry = $v_central_dir['offset']; |
| 4706 |
|
@rewind($this->zip_fd); |
| 4707 |
|
if (@fseek($this->zip_fd, $v_pos_entry)) |
| 4708 |
|
{ |
| 4709 |
|
// ----- Close the zip file |
| 4710 |
|
$this->privCloseFd(); |
| 4711 |
|
|
| 4712 |
|
// ----- Error log |
| 4713 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); |
| 4714 |
|
|
| 4715 |
|
// ----- Return |
| 4716 |
|
return PclZip::errorCode(); |
| 4717 |
|
} |
| 4718 |
|
|
| 4719 |
|
// ----- Read each entry |
| 4720 |
|
$v_header_list = array(); |