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

@@ -9,10 +9,10 @@ nusoap-general@lists.sourceforge.net
/**
* caches instances of the wsdl class
*
*
* @author Scott Nichol <snichol@users.sourceforge.net>
* @author Ingo Fischer <ingo@apollon.de>
* @access public
* @access public
*/
class nusoap_wsdlcache {
/**
@@ -43,7 +43,7 @@ class nusoap_wsdlcache {
* @param integer $cache_lifetime lifetime for caching-files in seconds or 0 for unlimited
* @access public
*/
function nusoap_wsdlcache($cache_dir='.', $cache_lifetime=0) {
function __construct($cache_dir='.', $cache_lifetime=0) {
$this->fplock = array();
$this->cache_dir = $cache_dir != '' ? $cache_dir : '.';
$this->cache_lifetime = $cache_lifetime;