Home > Backend Development > PHP Tutorial > NUSOAP在PHP5下出错“SoapClient:SoapClient() expects parameter 2 to be array”解决思路

NUSOAP在PHP5下出错“SoapClient:SoapClient() expects parameter 2 to be array”解决思路

WBOY
Release: 2016-06-13 10:15:47
Original
925 people have browsed it

NUSOAP在PHP5下出错“SoapClient::SoapClient() expects parameter 2 to be array”
PHP Warning: SoapClient::SoapClient() expects parameter 2 to be array, boolean given in aaa.php on line 61
PHP Fatal error: SoapClient::SoapClient(): Invalid parameters in aaa.php on line 61

原因是nusoap的SoapClient类和php5内置的SOAP类有冲突。

解决方案

1. 修改php.ini不加载php5内置的soap扩展(windows下是php_soap.dll)。

2. 也有给nusoap的SoapClient类改名的。

3. 改用php4 也行


2,3忽略不计,1的话虚拟主机设置不了,,问问能用代码实现不???

------解决方案--------------------
我会了,结贴。。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template