mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-24 10:21:32 +01:00
Fix: Assigning the return value of new by reference is deprecated
This commit is contained in:
@@ -100,7 +100,7 @@ class pdf_parser {
|
||||
|
||||
$this->getPDFVersion();
|
||||
|
||||
$this->c =& new pdf_context($this->f);
|
||||
$this->c = new pdf_context($this->f);
|
||||
// Read xref-Data
|
||||
$this->pdf_read_xref($this->xref, $this->pdf_find_xref());
|
||||
|
||||
@@ -426,7 +426,7 @@ class pdf_parser {
|
||||
$e++;
|
||||
|
||||
if ($this->actual_obj[1][1]['/Length'][0] == PDF_TYPE_OBJREF) {
|
||||
$tmp_c =& new pdf_context($this->f);
|
||||
$tmp_c = new pdf_context($this->f);
|
||||
$tmp_length = $this->pdf_resolve_object($tmp_c,$this->actual_obj[1][1]['/Length']);
|
||||
$length = $tmp_length[1][1];
|
||||
} else {
|
||||
|
||||
@@ -382,7 +382,7 @@ class pdf_propale_azur extends ModelePDFPropales
|
||||
@chmod($file, octdec($conf->global->MAIN_UMASK));
|
||||
|
||||
// Add external file
|
||||
//$pdfConcat =& new concat_pdf();
|
||||
//$pdfConcat = new concat_pdf();
|
||||
//$pdfConcat->setFiles(array($file, DOL_DOCUMENT_ROOT."/includes/modules/propale/morefile.pdf"));
|
||||
//$pdfConcat->concat();
|
||||
//$pdf->AliasNbPages();
|
||||
|
||||
@@ -362,7 +362,7 @@ class nusoap_client extends nusoap_base {
|
||||
*/
|
||||
function loadWSDL() {
|
||||
$this->debug('instantiating wsdl class with doc: '.$this->wsdlFile);
|
||||
$this->wsdl =& new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
|
||||
$this->wsdl = new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
|
||||
$this->wsdl->setCredentials($this->username, $this->password, $this->authtype, $this->certRequest);
|
||||
$this->wsdl->fetchWSDL($this->wsdlFile);
|
||||
$this->checkWSDL();
|
||||
|
||||
@@ -7378,7 +7378,7 @@ class nusoap_client extends nusoap_base {
|
||||
*/
|
||||
function loadWSDL() {
|
||||
$this->debug('instantiating wsdl class with doc: '.$this->wsdlFile);
|
||||
$this->wsdl =& new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
|
||||
$this->wsdl = new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
|
||||
$this->wsdl->setCredentials($this->username, $this->password, $this->authtype, $this->certRequest);
|
||||
$this->wsdl->fetchWSDL($this->wsdlFile);
|
||||
$this->checkWSDL();
|
||||
|
||||
@@ -133,7 +133,7 @@ class nusoap_client_mime extends nusoap_client {
|
||||
function getHTTPBody($soapmsg) {
|
||||
if (count($this->requestAttachments) > 0) {
|
||||
$params['content_type'] = 'multipart/related; type="text/xml"';
|
||||
$mimeMessage =& new Mail_mimePart('', $params);
|
||||
$mimeMessage = new Mail_mimePart('', $params);
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = 'text/xml';
|
||||
@@ -363,7 +363,7 @@ class nusoap_server_mime extends nusoap_server {
|
||||
function getHTTPBody($soapmsg) {
|
||||
if (count($this->responseAttachments) > 0) {
|
||||
$params['content_type'] = 'multipart/related; type="text/xml"';
|
||||
$mimeMessage =& new Mail_mimePart('', $params);
|
||||
$mimeMessage = new Mail_mimePart('', $params);
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = 'text/xml';
|
||||
|
||||
@@ -913,7 +913,7 @@ class Spreadsheet_Excel_Reader {
|
||||
* Some basic initialisation
|
||||
*/
|
||||
function Spreadsheet_Excel_Reader($file='',$store_extended_info=true,$outputEncoding='') {
|
||||
$this->_ole =& new OLERead();
|
||||
$this->_ole = new OLERead();
|
||||
$this->setUTFEncoder('iconv');
|
||||
if ($outputEncoding != '') {
|
||||
$this->setOutputEncoding($outputEncoding);
|
||||
|
||||
@@ -167,7 +167,7 @@ function &addworksheet($name="") {
|
||||
}
|
||||
}
|
||||
|
||||
$worksheet =& new writeexcel_worksheet($name, $index, $this->_activesheet,
|
||||
$worksheet = new writeexcel_worksheet($name, $index, $this->_activesheet,
|
||||
$this->_firstsheet,
|
||||
$this->_url_format, $this->_parser,
|
||||
$this->_tempdir);
|
||||
@@ -187,9 +187,9 @@ function &addworksheet($name="") {
|
||||
#
|
||||
function &addformat($para=false) {
|
||||
if($para===false) {
|
||||
$format =& new writeexcel_format($this->_xf_index);
|
||||
$format = new writeexcel_format($this->_xf_index);
|
||||
} else {
|
||||
$format =& new writeexcel_format($this->_xf_index, $para);
|
||||
$format = new writeexcel_format($this->_xf_index, $para);
|
||||
}
|
||||
|
||||
$this->_xf_index += 1;
|
||||
|
||||
@@ -362,7 +362,7 @@ class nusoap_client extends nusoap_base {
|
||||
*/
|
||||
function loadWSDL() {
|
||||
$this->debug('instantiating wsdl class with doc: '.$this->wsdlFile);
|
||||
$this->wsdl =& new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
|
||||
$this->wsdl = new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
|
||||
$this->wsdl->setCredentials($this->username, $this->password, $this->authtype, $this->certRequest);
|
||||
$this->wsdl->fetchWSDL($this->wsdlFile);
|
||||
$this->checkWSDL();
|
||||
|
||||
@@ -7378,7 +7378,7 @@ class nusoap_client extends nusoap_base {
|
||||
*/
|
||||
function loadWSDL() {
|
||||
$this->debug('instantiating wsdl class with doc: '.$this->wsdlFile);
|
||||
$this->wsdl =& new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
|
||||
$this->wsdl = new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
|
||||
$this->wsdl->setCredentials($this->username, $this->password, $this->authtype, $this->certRequest);
|
||||
$this->wsdl->fetchWSDL($this->wsdlFile);
|
||||
$this->checkWSDL();
|
||||
|
||||
@@ -133,7 +133,7 @@ class nusoap_client_mime extends nusoap_client {
|
||||
function getHTTPBody($soapmsg) {
|
||||
if (count($this->requestAttachments) > 0) {
|
||||
$params['content_type'] = 'multipart/related; type="text/xml"';
|
||||
$mimeMessage =& new Mail_mimePart('', $params);
|
||||
$mimeMessage = new Mail_mimePart('', $params);
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = 'text/xml';
|
||||
@@ -363,7 +363,7 @@ class nusoap_server_mime extends nusoap_server {
|
||||
function getHTTPBody($soapmsg) {
|
||||
if (count($this->responseAttachments) > 0) {
|
||||
$params['content_type'] = 'multipart/related; type="text/xml"';
|
||||
$mimeMessage =& new Mail_mimePart('', $params);
|
||||
$mimeMessage = new Mail_mimePart('', $params);
|
||||
unset($params);
|
||||
|
||||
$params['content_type'] = 'text/xml';
|
||||
|
||||
Reference in New Issue
Block a user