PDA

View Full Version : سوال: nusaop و Wamp Server



rash44
چهارشنبه 07 بهمن 1394, 12:24 عصر
سلام
زمانی که فایل nusaop در برنامه اینکلود میکنم ، 1 Warning با متن زیر صادر میشه



( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\nusoap.php on line 7381


خط 7381 :


function loadWSDL() {
$this->debug('instantiating wsdl class with doc: '.$this->wsdlFile);
$this->wsdl =& new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
$this->wsdl->setCredentials($this->username, $this->password, $this->authtype, $this->certRequest);
$this->wsdl->fetchWSDL($this->wsdlFile);
$this->checkWSDL();
}




$this->wsdl =& new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);

Unique
چهارشنبه 07 بهمن 1394, 13:56 عصر
توی php5 استفاده از &= در واقع depricate شده.
ببین اگه از نسخه قدیمی Nusoap استفاده میکنی با یک نسخه جدیدتر جایگزینش کن.
اگه میخوای خطا را گزارش نگیری E_DEPRECATED را توی error_reporting غیر فعال کن :

error_reporting(E_ALL ^ E_DEPRECATED);

نمیدونم nusoap را برای چی میخوای اما php5 خودش soap را پشتیبانی میکنه ! nusoap روی php4 استفاده میشد و تا جایی که میدونم از سال ۲۰۱۱ دیگه توسعه داده نشده !