在php 5.1.6中执行SOAP请求时的子分段错误

时间:2010-05-26 08:40:44

标签: php soap apache

当我尝试使用标准的php soap库进行简单的soap请求时,我在apache日志中得到了“[notice] child pid 26701退出信号Segmentation fault(11)”。

我在Centos 5.4上运行php 5.1.6

1 个答案:

答案 0 :(得分:0)

解决。

<强> Faiure:

class MySoap extends SoapClient {
    public function __construct($wsdl = null, $options = null) {
        parent::__construct($wsdl = null, $options = null);
        $header = new SoapHeader();
        $this->__setSoapHeaders($header);            
    }
}

<强>成功:

class MySoap extends SoapClient {
    private $_myHeader;
    public function __construct($wsdl = null, $options = null) {
        parent::__construct($wsdl = null, $options = null);
        $this->_myHeader = new SoapHeader();
        $this->__setSoapHeaders($this->_myHeader);            
    }
}

这将是全部......