简体   繁体   English

Zend Server CE 5.6.0和WSO2 WSF / PHP的PHP malloc错误

[英]PHP malloc error with Zend Server CE 5.6.0 and WSO2 WSF/PHP

After upgrading from Zend Server Community Edition 5.5 to 5.6, PHP runs into malloc error when I try to connect to web services with WSO2 Web Services Framework for PHP. 从Zend Server Community Edition 5.5升级到5.6后,当我尝试使用适用于PHP的WSO2 Web服务框架连接到Web服务时,PHP遇到malloc错误。

The last line output in wsf_php_client.log is wsf_php_client.log中的最后一行输出是

[debug] (...)/wso2/2.1.0/scripts/dynamic_invocation/wsf_wsdl_util.php(1329) [WSF/PHP] importing xsd: (...) from: (...)

and the error thrown by PHP is PHP抛出的错误是

php(38384,0xa0ab0540) malloc: *** error for object 0x401bf61: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

The memory address 0xa0ab0540 seems to be consistent for every attempt. 每次尝试的内存地址0xa0ab0540似乎都是一致的。

Is there a way to figure out where the problem is to be found? 有没有办法找出问题所在? Is it in the php executable, in the apache PHP module or can the problem be found in WSF/PHP itself? 是在php可执行文件中,还是在Apache PHP模块中,还是可以在WSF / PHP本身中找到问题?

Zend Server CE 5.6 runs PHP 5.3.9 Zend Server CE 5.6运行PHP 5.3.9

PHP 5.3.9-ZS5.6.0 (cli) (built: Dec 22 2011 12:28:41)

The malloc error seems to have had something to do with the WSF extension. malloc错误似乎与WSF扩展有关。 After I rebuilt it from source, I got it working as intended. 从源代码重建后,它可以按预期工作。 The only difference from previously was that I added CC=clang CXX=clang to the ./configure command when compiling. 与以前的唯一区别是在编译时,我向./configure命令中添加了CC=clang CXX=clang

Update: My conclusion was a bit premature. 更新:我的结论还为时过早。 The malloc error occurs if I run WSF in WSDL-mode. 如果我以WSDL模式运行WSF,则会发生malloc错误。 If I send the SOAP envelope explicitly, I don't get the error. 如果我明确发送SOAP信封,则不会收到该错误。 WSDL-mode worked fine when running on Zend Server CE 5.5. 在Zend Server CE 5.5上运行时,WSDL模式工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM