Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
+12
-4
@@ -212,9 +212,8 @@
|
||||
// Note that no real action is taken, if the archive does not exist it is not
|
||||
// created. Use create() for that.
|
||||
// --------------------------------------------------------------------------------
|
||||
function PclZip($p_zipname)
|
||||
function __construct($p_zipname) // renamed to __construct()
|
||||
{
|
||||
|
||||
// ----- Tests the zlib
|
||||
if (!function_exists('gzopen'))
|
||||
{
|
||||
@@ -4210,12 +4209,21 @@
|
||||
if ($p_entry['compression'] == 0) {
|
||||
|
||||
// ----- Reading the file
|
||||
$p_string = @fread($this->zip_fd, $p_entry['compressed_size']);
|
||||
try
|
||||
{
|
||||
$p_string = @fread($this->zip_fd, $p_entry['compressed_size']);
|
||||
}
|
||||
catch( \ValueError $e ) {}
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
// ----- Reading the file
|
||||
$v_data = @fread($this->zip_fd, $p_entry['compressed_size']);
|
||||
try
|
||||
{
|
||||
$v_data = @fread($this->zip_fd, $p_entry['compressed_size']);
|
||||
}
|
||||
catch( \ValueError $e ) {}
|
||||
|
||||
// ----- Decompress the file
|
||||
if (($p_string = @gzinflate($v_data)) === FALSE) {
|
||||
|
||||
Reference in new issue
Block a user