Compatibility of nusoap with PHP8

This commit is contained in:
Laurent Destailleur
2020-12-12 15:37:15 +01:00
parent 4013eaa239
commit 5f476e7e7e
18 changed files with 625 additions and 435 deletions

View File

@@ -56,8 +56,8 @@ class nusoap_parser extends nusoap_base {
* @param string $decode_utf8 whether to decode UTF-8 to ISO-8859-1
* @access public
*/
function nusoap_parser($xml,$encoding='UTF-8',$method='',$decode_utf8=true){
parent::nusoap_base();
function __construct($xml,$encoding='UTF-8',$method='',$decode_utf8=true){
parent::__construct();
$this->xml = $xml;
$this->xml_encoding = $encoding;
$this->method = $method;
@@ -316,7 +316,7 @@ class nusoap_parser extends nusoap_base {
// get unqualified name
$name = substr(strstr($name,':'),1);
}
// build to native type
if(isset($this->body_position) && $pos > $this->body_position){
// deal w/ multirefs
@@ -378,7 +378,7 @@ class nusoap_parser extends nusoap_base {
*/
}
}
// for doclit
if($this->status == 'header'){
if ($this->root_header != $pos) {