mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 18:18:18 +01:00
Compatibility of nusoap with PHP8
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user