当我尝试使用标准的php soap库进行简单的soap请求时,我在apache日志中得到了“[notice] child pid 26701退出信号Segmentation fault(11)”。
我在Centos 5.4上运行php 5.1.6
答案 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);
}
}
这将是全部......