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

WBOY
Release: 2016-06-13 13:35:49
Original
1078 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!