|
@@ 3199-3208 (lines=10) @@
|
| 3196 |
|
|
| 3197 |
|
// ----- Go to beginning of Central Dir
|
| 3198 |
|
@rewind($this->zip_fd);
|
| 3199 |
|
if (@fseek($this->zip_fd, $v_central_dir['offset']))
|
| 3200 |
|
{
|
| 3201 |
|
$this->privSwapBackMagicQuotes();
|
| 3202 |
|
|
| 3203 |
|
// ----- Error log
|
| 3204 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size');
|
| 3205 |
|
|
| 3206 |
|
// ----- Return
|
| 3207 |
|
return PclZip::errorCode();
|
| 3208 |
|
}
|
| 3209 |
|
|
| 3210 |
|
// ----- Read each entry
|
| 3211 |
|
for ($i=0; $i<$v_central_dir['entries']; $i++)
|
|
@@ 3354-3365 (lines=12) @@
|
| 3351 |
|
|
| 3352 |
|
// ----- Read next Central dir entry
|
| 3353 |
|
@rewind($this->zip_fd);
|
| 3354 |
|
if (@fseek($this->zip_fd, $v_pos_entry))
|
| 3355 |
|
{
|
| 3356 |
|
// ----- Close the zip file
|
| 3357 |
|
$this->privCloseFd();
|
| 3358 |
|
$this->privSwapBackMagicQuotes();
|
| 3359 |
|
|
| 3360 |
|
// ----- Error log
|
| 3361 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size');
|
| 3362 |
|
|
| 3363 |
|
// ----- Return
|
| 3364 |
|
return PclZip::errorCode();
|
| 3365 |
|
}
|
| 3366 |
|
|
| 3367 |
|
// ----- Read the file header
|
| 3368 |
|
$v_header = array();
|
|
@@ 3515-3527 (lines=13) @@
|
| 3512 |
|
|
| 3513 |
|
// ----- Go to the file position
|
| 3514 |
|
@rewind($this->zip_fd);
|
| 3515 |
|
if (@fseek($this->zip_fd, $v_header['offset']))
|
| 3516 |
|
{
|
| 3517 |
|
// ----- Close the zip file
|
| 3518 |
|
$this->privCloseFd();
|
| 3519 |
|
|
| 3520 |
|
$this->privSwapBackMagicQuotes();
|
| 3521 |
|
|
| 3522 |
|
// ----- Error log
|
| 3523 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size');
|
| 3524 |
|
|
| 3525 |
|
// ----- Return
|
| 3526 |
|
return PclZip::errorCode();
|
| 3527 |
|
}
|
| 3528 |
|
|
| 3529 |
|
// ----- Look for extraction as string
|
| 3530 |
|
if ($p_options[PCLZIP_OPT_EXTRACT_AS_STRING]) {
|
|
@@ 4736-4746 (lines=11) @@
|
| 4733 |
|
// ----- Start at beginning of Central Dir
|
| 4734 |
|
$v_pos_entry = $v_central_dir['offset'];
|
| 4735 |
|
@rewind($this->zip_fd);
|
| 4736 |
|
if (@fseek($this->zip_fd, $v_pos_entry))
|
| 4737 |
|
{
|
| 4738 |
|
// ----- Close the zip file
|
| 4739 |
|
$this->privCloseFd();
|
| 4740 |
|
|
| 4741 |
|
// ----- Error log
|
| 4742 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size');
|
| 4743 |
|
|
| 4744 |
|
// ----- Return
|
| 4745 |
|
return PclZip::errorCode();
|
| 4746 |
|
}
|
| 4747 |
|
|
| 4748 |
|
// ----- Read each entry
|
| 4749 |
|
$v_header_list = array();
|