开发者

Child segmentation fault when doing SOAP request in php 5.1.6

I get a "[notice] child pid 26701 exit signal Segmentation fault (1开发者_Python百科1)" in apache log when I try to do a simple soap request using standard php soap library.

I'm running php 5.1.6 on Centos 5.4


Solved.

Faiure:

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

Success:

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);            
    }
}

That will be all...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜