[英]PHP soap is not working with new version
舊版本:
PHP版本5.3
新版本:
PHP版本7.0.4
在此代碼中:
$this->wsdl = & new wsdl('', $this->proxyhost, $this->proxyport, $this->proxyusername, $this->proxypassword, $this->timeout, $this->response_timeout, $this->curl_options, $this->use_curl);
現在,當我以新版本托管相同的PHP Web應用程序時,會遇到以下錯誤:
Parse error: syntax error, unexpected 'new' (T_NEW) in
D:\xampp\htdocs\website\libs\nusoap.php on line 7385
據我所知,這是因為PHP版本發生了變化。
請分享您的經驗。 提前致謝。
只需刪除&
那么您的代碼應類似於:
$this->wsdl = new wsdl('', $this->proxyhost, $this->proxyport,
$this->proxyusername, $this->proxypassword,
$this->timeout, $this->response_timeout,
$this->curl_options, $this->use_curl);
根據PHP 7中的更改 。 不能通過引用分配新對象。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.