Skip to content
Snippets Groups Projects
Commit 85c3e69a authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: Assigning the return value of new by reference is deprecated

parent f0e75393
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ class FPDI extends FPDF_TPL {
$fn =& $this->current_filename;
if (!isset($this->parsers[$fn]))
$this->parsers[$fn] =& new fpdi_pdf_parser($fn,$this);
$this->parsers[$fn] = new fpdi_pdf_parser($fn,$this);
$this->current_parser =& $this->parsers[$fn];
return $this->parsers[$fn]->getPageCount();
......
......@@ -242,7 +242,7 @@ class fpdi_pdf_parser extends pdf_parser {
if (preg_match("/^\/[a-z85]*$/i", $_filter[1], $filterName) && @include_once('decoders'.$_filter[1].'.php')) {
$filterName = substr($_filter[1],1);
if (class_exists($filterName)) {
$decoder =& new $filterName($this->fpdi);
$decoder = new $filterName($this->fpdi);
$stream = $decoder->decode(trim($stream));
} else {
$this->fpdi->error(sprintf("Unsupported Filter: %s",$_filter[1]));
......
......@@ -281,7 +281,7 @@ class pdf_parser {
fseek($this->f, $o_pos+$trailerPos+7);
$c =& new pdf_context($this->f);
$c = new pdf_context($this->f);
$trailer = $this->pdf_read_value($c);
$c = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment