NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Error in Nusoap.php file from NuSphere


Joined: 08 Dec 2008
Posts: 33
Reply with quote
I am just beginning to work with Nusoap. When I got the nusoap.php from NuSphere and opened it in the IDE (latest release 6.2.6234) it generates an error on line 6496 stating: Assigning a return value of new by reference is depreciated on line 6496. Is this a real error or can I work around it?

Code:

function soapclient($endpoint,$wsdl = false,$proxyhost = false,$proxyport = false,$proxyusername = false, $proxypassword = false, $timeout = 0, $response_timeout = 30){
      parent::nusoap_base();
      $this->endpoint = $endpoint;
      $this->proxyhost = $proxyhost;
      $this->proxyport = $proxyport;
      $this->proxyusername = $proxyusername;
      $this->proxypassword = $proxypassword;
      $this->timeout = $timeout;
      $this->response_timeout = $response_timeout;

      // make values
      if($wsdl){
         if (is_object($endpoint) && (get_class($endpoint) == 'wsdl')) {
            $this->wsdl = $endpoint;
            $this->endpoint = $this->wsdl->wsdl;
            $this->wsdlFile = $this->endpoint;
            $this->debug('existing wsdl instance created from ' . $this->endpoint);
         } else {
            $this->wsdlFile = $this->endpoint;
            
            // instantiate wsdl object and parse wsdl file
            $this->debug('instantiating wsdl class with doc: '.$endpoint);
// BEGIN: ERROR DEFINED HERE
            $this->wsdl =& new wsdl($this->wsdlFile,$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout);
//END: ERROR
         }
         $this->appendDebug($this->wsdl->getDebug());
         $this->wsdl->clearDebug();
         // catch errors
         if($errstr = $this->wsdl->getError()){
            $this->debug('got wsdl error: '.$errstr);
            $this->setError('wsdl error: '.$errstr);
         } elseif($this->operations = $this->wsdl->getOperations()){
            $this->debug( 'got '.count($this->operations).' operations from wsdl '.$this->wsdlFile);
            $this->endpointType = 'wsdl';
         } else {
            $this->debug( 'getOperations returned false');
            $this->setError('no operations defined in the WSDL document!');
         }
      } else {
         $this->debug("instantiate SOAP with endpoint at $endpoint");
         $this->endpointType = 'soap';
      }
   }
[/code]
View user's profileFind all posts by radi8Send private message
Error in Nusoap.php file from NuSphere
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic