@@ 2979-2987 (lines=9) @@ | ||
2976 | ||
2977 | // ----- Go to beginning of Central Dir |
|
2978 | @rewind($this->zip_fd); |
|
2979 | if (@fseek($this->zip_fd, $v_central_dir['offset'])) { |
|
2980 | $this->privSwapBackMagicQuotes(); |
|
2981 | ||
2982 | // ----- Error log |
|
2983 | self::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); |
|
2984 | ||
2985 | // ----- Return |
|
2986 | return self::errorCode(); |
|
2987 | } |
|
2988 | ||
2989 | // ----- Read each entry |
|
2990 | for ($i = 0; $i < $v_central_dir['entries']; ++$i) { |
|
@@ 3124-3134 (lines=11) @@ | ||
3121 | for ($i = 0, $v_nb_extracted = 0; $i < $v_central_dir['entries']; ++$i) { |
|
3122 | // ----- Read next Central dir entry |
|
3123 | @rewind($this->zip_fd); |
|
3124 | if (@fseek($this->zip_fd, $v_pos_entry)) { |
|
3125 | // ----- Close the zip file |
|
3126 | $this->privCloseFd(); |
|
3127 | $this->privSwapBackMagicQuotes(); |
|
3128 | ||
3129 | // ----- Error log |
|
3130 | self::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); |
|
3131 | ||
3132 | // ----- Return |
|
3133 | return self::errorCode(); |
|
3134 | } |
|
3135 | ||
3136 | // ----- Read the file header |
|
3137 | $v_header = []; |
|
@@ 3239-3250 (lines=12) @@ | ||
3236 | if ($v_extract) { |
|
3237 | // ----- Go to the file position |
|
3238 | @rewind($this->zip_fd); |
|
3239 | if (@fseek($this->zip_fd, $v_header['offset'])) { |
|
3240 | // ----- Close the zip file |
|
3241 | $this->privCloseFd(); |
|
3242 | ||
3243 | $this->privSwapBackMagicQuotes(); |
|
3244 | ||
3245 | // ----- Error log |
|
3246 | self::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); |
|
3247 | ||
3248 | // ----- Return |
|
3249 | return self::errorCode(); |
|
3250 | } |
|
3251 | ||
3252 | // ----- Look for extraction as string |
|
3253 | if ($p_options[PCLZIP_OPT_EXTRACT_AS_STRING]) { |
|
@@ 4328-4337 (lines=10) @@ | ||
4325 | // ----- Start at beginning of Central Dir |
|
4326 | $v_pos_entry = $v_central_dir['offset']; |
|
4327 | @rewind($this->zip_fd); |
|
4328 | if (@fseek($this->zip_fd, $v_pos_entry)) { |
|
4329 | // ----- Close the zip file |
|
4330 | $this->privCloseFd(); |
|
4331 | ||
4332 | // ----- Error log |
|
4333 | self::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); |
|
4334 | ||
4335 | // ----- Return |
|
4336 | return self::errorCode(); |
|
4337 | } |
|
4338 | ||
4339 | // ----- Read each entry |
|
4340 | $v_header_list = []; |