Ticket #52018: 52018-1.patch
File 52018-1.patch, 966 bytes (added by , 4 years ago) |
---|
-
class-pclzip.php
old new 4209 4209 if ($p_entry['compression'] == 0) { 4210 4210 4211 4211 // ----- Reading the file 4212 $p_string = @fread($this->zip_fd, $p_entry['compressed_size']); 4212 if ($p_entry['compressed_size'] > 0) { 4213 $p_string = @fread($this->zip_fd, $p_entry['compressed_size']); 4214 } else { 4215 $p_string = false; 4216 } 4213 4217 } 4214 4218 else { 4215 4219 4216 4220 // ----- Reading the file 4217 $v_data = @fread($this->zip_fd, $p_entry['compressed_size']); 4221 if ($p_entry['compressed_size'] > 0) { 4222 $v_data = @fread($this->zip_fd, $p_entry['compressed_size']); 4223 } else { 4224 $v_data = false; 4225 } 4218 4226 4219 4227 // ----- Decompress the file 4220 4228 if (($p_string = @gzinflate($v_data)) === FALSE) {