f00b4r / nusoap

:smirk: Fixed NuSOAP for PHP 5.6 - 8.2
https://f00b4r.github.io/nusoap/
320 stars 356 forks source link

Php Error Warning #33

Open jimmyphong opened 6 years ago

jimmyphong commented 6 years ago

PHP message: PHP Notice: Array to string conversion in /***/nusoap.php on line 7425" while reading response header from upstream, client: 35.234.102.98, server: ***, request: "GET ** HTTP/1.1", upstream: "fastcgi://127.0.0.1:9002", host: "***" 2018/06/07 15:10:47 [error] 21264#21264: *24189 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant SOAP_RPC - assumed 'SOAP_RPC' (this will throw an Error in a future version of PHP) in ***.php on line 159 PHP message: PHP Warning: Use of undefined constant SOAP_ENCODED - assumed 'SOAP_ENCODED' (this will throw an Error in a future version of PHP) in ***.php on line 160 PHP message: PHP Warning: Use of undefined constant SOAP_1_1 - assumed 'SOAP_1_1' (this will throw an Error in a future version of PHP) in ***.php on line 161 PHP message: PHP Warning: Use of undefined constant WSDL_CACHE_NONE - assumed 'WSDL_CACHE_NONE' (this will throw an Error in a future version of PHP) in **.php on line 162

Centos OS 7 Php 7.2 Nginx + Php fpm

` $default = array(' My option value '); $params = array_merge($default, $params);

    $client                   = new nusoap_client($this->config->get('SoapUrl'), true);
    $client->soap_defencoding = 'UTF-8';
    $client->decode_utf8      = false;

    $error = $client->getError();
    if ($error) {
        $this->logger->addInfo("Constructor error $error");
    }

    $result = $client->call($function, $params);

    if ($client->fault) {
        $this->logger->addInfo("Fault", (array) $result);
    } elseif ($error = $client->getError()) {
        $this->logger->addInfo("Error $function $error");
    } else {
        return $result;
    }`
evilangelmd commented 6 years ago

Hello. please provide version of nusoap used.