0

I am currently receiving a Strict Standards error when trying to make an alfresco web service call. I am using the Zend Framework. The tutorial works fine when not using the Zend Framework.

If i use the Zend_Soap_Client i get a segmentation error, when i use the PHP Soap_Client i get the following error message:

Strict Standards: Declaration of AlfrescoWebService::__call() should be compatible with that of SoapClient::__call() in /opt/work/intranet/shamraiza/src/intranet/library/spectrum/Alfresco/AlfrescoWebService.php on line 130

Strict Standards: Declaration of AlfrescoWebService::__soapCall() should be compatible with that of SoapClient::__soapCall() in /opt/work/intranet/shamraiza/src/intranet/library/spectrum/Alfresco/AlfrescoWebService.php on line 130

4

1 回答 1

2

对于第一个 Strict 标准,您只需像这样修改 AlfrescoWebService.php 中的函数 __call

public function __call($function_name, $arguments)

$arguments 不是可选的

对于第二个,

public function __soapCall($function_name, $arguments=array(), $options=array(), $input_headers= array(), $output_headers=array())

这必须像这样修改

public function __soapCall($function_name, $arguments, $options=array(), $input_headers= array(), &$output_headers=array())

$arguments 仍然不是可选的

$output_headers 通过引用传递。

于 2009-05-20T09:10:49.193 回答