I recently updated my server php version from 5.6 to 7.3. When I attempt to load a page I'm seeing the following parse error:
Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/pear/MDB2/Driver/mysqli.php on line 940
The file above is automatically installed via pear, here is the section prompting the error:
938
939 $class_name = 'MDB2_Statement_'.$this->phptype;
940 $obj =& new $class_name($this, $statement, $positions, $query, $types, $result_types, $is_manip, $limit, $ offset);
941 $this->debug($query, __FUNCTION__, array('is_manip' => $is_manip, 'when' => 'post', 'result' => $obj));
942 return $obj;
943 }
944
I've updated all pear packages using pear upgrade-all, restarted httpd and continue to get the same error above.