diff --git a/vtlib/thirdparty/dUnzip2.inc.php b/vtlib/thirdparty/dUnzip2.inc.php index 4769e5e666c519ef60abe2cbe472b755306e2dc9..8c1958a024c53799e59a97bb668527139cfd9039 100644 --- a/vtlib/thirdparty/dUnzip2.inc.php +++ b/vtlib/thirdparty/dUnzip2.inc.php @@ -102,7 +102,7 @@ class dUnzip2{ // Open file, and set file handler $fh = fopen($this->fileName, "r"); - $this->fh = &$fh; + $this->fh = $fh; if(!$fh){ $this->debugMsg(2, "Failed to load file."); return false; @@ -198,7 +198,7 @@ class dUnzip2{ $this->getList(false, $compressedFileName); } - $fdetails = &$this->compressedList[$compressedFileName]; + $fdetails = $this->compressedList[$compressedFileName]; if(!isset($this->compressedList[$compressedFileName])){ $this->debugMsg(2, "File '<b>$compressedFileName</b>' is not compressed in the zip."); return false; diff --git a/vtlib/thirdparty/dZip.inc.php b/vtlib/thirdparty/dZip.inc.php index 3ca05cfb8a7c1a154a21ad5ac30fc6d41cad7240..d4449a1cec89213c8dd77b90a0c7f3e78550f86e 100644 --- a/vtlib/thirdparty/dZip.inc.php +++ b/vtlib/thirdparty/dZip.inc.php @@ -25,7 +25,7 @@ class dZip{ $this->addFile(false, $dirname, $fileComments); } Function addFile($filename, $cfilename, $fileComments='', $data=false){ - if(!($fh = &$this->fh)) + if(!($fh = $this->fh)) $fh = fopen($this->filename, $this->overwrite?'wb':'a+b'); // $filename can be a local file OR the data wich will be compressed @@ -51,7 +51,7 @@ class dZip{ $details['comsize'] = $details['uncsize']; $details['vneeded'] = 10; $details['cmethod'] = 0; - $zdata = &$data; + $zdata = $data; } else{ // otherwise, compress it $zdata = gzcompress($data); @@ -103,7 +103,7 @@ class dZip{ $this->centraldirs[$filename][$property] = $value; } Function save($zipComments=''){ - if(!($fh = &$this->fh)) + if(!($fh = $this->fh)) $fh = fopen($this->filename, $this->overwrite?'w':'a+'); $cdrec = "";