我正在尝试在Kubuntu 11.04上使用WSO2 Web Services Framework for PHP 2.1.0 with php 5.3.5-1ubuntu7.7
我有最小的php安装,xml,xslt,lib-ssl,libaxis2c库:
apt-get install php5 php5-dev php5-xsl libxml2-dev libssl-dev libaxis2c
一切都很顺利 - 编译和安装,添加到包含路径。 我在php -i输出中看到了库:
wsf
wsf support => enabled
wsf version => 2.1.0
Directive => Local Value => Master Value
wsf.attachment_cache_dir => /tmp => /tmp
wsf.enable_attachment_caching => 0 => 0
wsf.home => /usr/lib/php5/20090626/wsf_c => /usr/lib/php5/20090626/wsf_c
wsf.log_level => 4 => 4
wsf.log_path => /tmp => /tmp
wsf.rm_db_dir => /tmp => /tmp
所以我试图访问简单的网络服务: http://www.w3schools.com/webservices/tempconvert.asmx?wsdl
像这样:
$client = new WSClient(array(
'wsdl'=>'http://www.w3schools.com/webservices/tempconvert.asmx?wsdl'
));
$proxy = $client->getProxy();
$response = $proxy->CelsiusToFahrenheit(array('Celsius'=>11));
脚本似乎运行正常 - 得到wsdl,连接,解析响应,我可以print_r响应数据:
Array
(
[CelsiusToFahrenheitResult] => 51.8
)
然后脚本尝试完成并因分段错误而崩溃:
[Fri Apr 6 15:42:35 2012] [info] [rampart] rampart_mod shutdown
[Fri Apr 6 15:42:35 2012] [info] [rahas] Rahas module shutdown
Segmentation fault
如果我要对soap调用进行评论,那么分段错误将会消失。
有没有办法消除这个段错误?感谢。