【发布时间】:2011-02-24 01:49:41
【问题描述】:
当我尝试使用标准 php soap 库执行简单的肥皂请求时,我在 apache 日志中收到“[notice] child pid 26701 exit signal Segmentation fault (11)”。
我在 Centos 5.4 上运行 php 5.1.6
【问题讨论】:
当我尝试使用标准 php soap 库执行简单的肥皂请求时,我在 apache 日志中收到“[notice] child pid 26701 exit signal Segmentation fault (11)”。
我在 Centos 5.4 上运行 php 5.1.6
【问题讨论】:
解决了。
失败:
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);
}
}
就这些了……
【讨论】: