【问题标题】:PHP malloc error with Zend Server CE 5.6.0 and WSO2 WSF/PHPZend Server CE 5.6.0 和 WSO2 WSF/PHP 的 PHP malloc 错误
【发布时间】:2012-05-03 08:20:18
【问题描述】:

从 Zend Server Community Edition 5.5 升级到 5.6 后,当我尝试使用 WSO2 Web Services Framework for PHP 连接到 Web 服务时,PHP 遇到 malloc 错误。

wsf_php_client.log 中的最后一行输出是

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

而PHP抛出的错误是

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

内存地址 0xa0ab0540 似乎每次尝试都是一致的。

有没有办法找出问题所在?是在 php 可执行文件中,在 apache PHP 模块中还是在 WSF/PHP 本身中可以找到问题?

Zend Server CE 5.6 运行 PHP 5.3.9

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

【问题讨论】:

    标签: php wso2 zend-server-ce


    【解决方案1】:

    malloc 错误似乎与 WSF 扩展有关。在我从源代码重建它之后,我让它按预期工作。与之前的唯一区别是我在编译时在./configure 命令中添加了CC=clang CXX=clang

    更新: 我的结论有点为时过早。如果我在 WSDL 模式下运行 WSF,则会发生 malloc 错误。如果我明确发送 SOAP 信封,我不会收到错误消息。在 Zend Server CE 5.5 上运行时,WSDL 模式运行良好。

    【讨论】:

    • 另外:我在 Mac OS X 10.6.8 上运行它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-02-13
    • 2022-09-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多