Fix for php8
This commit is contained in:
parent
4ec78d029b
commit
5aae018a0b
@ -50,6 +50,13 @@ Replace call to serialize_val with no bugged value
|
|||||||
|
|
||||||
* In all files, replace constructor names into __construct. Replace also parent::constructor_name with parent::__construct
|
* In all files, replace constructor names into __construct. Replace also parent::constructor_name with parent::__construct
|
||||||
|
|
||||||
|
* Line 4222 of file nusoap.php
|
||||||
|
|
||||||
|
$rev = array();
|
||||||
|
preg_match('/\$Revision: ([^ ]+)/', $this->revision, $rev);
|
||||||
|
$this->outgoing_headers[] = "X-SOAP-Server: $this->title/$this->version (".(isset($rev[1]) ? $rev[1] : '').")";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TCPDF:
|
TCPDF:
|
||||||
|
|||||||
@ -4219,8 +4219,10 @@ class nusoap_server extends nusoap_base {
|
|||||||
$payload .= $this->getDebugAsXMLComment();
|
$payload .= $this->getDebugAsXMLComment();
|
||||||
}
|
}
|
||||||
$this->outgoing_headers[] = "Server: $this->title Server v$this->version";
|
$this->outgoing_headers[] = "Server: $this->title Server v$this->version";
|
||||||
preg_match('/\$Revisio' . 'n: ([^ ]+)/', $this->revision, $rev);
|
// @CHANGE Fix for php8
|
||||||
$this->outgoing_headers[] = "X-SOAP-Server: $this->title/$this->version (".$rev[1].")";
|
$rev = array();
|
||||||
|
preg_match('/\$Revision: ([^ ]+)/', $this->revision, $rev);
|
||||||
|
$this->outgoing_headers[] = "X-SOAP-Server: $this->title/$this->version (".(isset($rev[1]) ? $rev[1] : '').")";
|
||||||
// Let the Web server decide about this
|
// Let the Web server decide about this
|
||||||
//$this->outgoing_headers[] = "Connection: Close\r\n";
|
//$this->outgoing_headers[] = "Connection: Close\r\n";
|
||||||
$payload = $this->getHTTPBody($payload);
|
$payload = $this->getHTTPBody($payload);
|
||||||
|
|||||||
@ -204,7 +204,7 @@ class WebservicesProductsTest extends PHPUnit\Framework\TestCase
|
|||||||
print $soapclient->response;
|
print $soapclient->response;
|
||||||
print "\n";
|
print "\n";
|
||||||
}
|
}
|
||||||
|
print var_export($result, true);
|
||||||
print __METHOD__." count(result)=".(is_array($result) ? count($result) : '')."\n";
|
print __METHOD__." count(result)=".(is_array($result) ? count($result) : '')."\n";
|
||||||
$this->assertEquals('OK', $result['result']['result_code']);
|
$this->assertEquals('OK', $result['result']['result_code']);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user