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

This commit is contained in:
Regis Houssin
2009-10-25 10:53:36 +00:00
parent 4437bc596f
commit f0e75393d5
10 changed files with 15 additions and 15 deletions

View File

@@ -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 {

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -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';

View File

@@ -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);

View File

@@ -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;

View File

@@ -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();

View File

@@ -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();

View File

@@ -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';