【发布时间】:2014-01-03 08:06:33
【问题描述】:
我在使用 Saxon C php 扩展调用 XsltProcessor() 构造函数时遇到了这种非常奇怪的行为。当我第一次调用它时,一切正常,但是下次我调用它时,如果我等待大约 10 秒或更长时间再调用它,它会使 apache 重新启动并且我得到有问题的错误:
[pid 4540:tid 476] AH00428: Parent: child process 5168 exited with status 1 -- Restarting.
然后它重新启动:
[pid 4540:tid 476] AH00418: Parent: Created child process 5184
下次我再次调用构造函数时,$xslt = new XsltProcessor();它工作正常,但再次调用时,apache再次崩溃,
父进程:子进程 5184 以状态 1 退出
杀死最后创建的子进程。这种情况一直持续下去。
我确实阅读了几个小时试图找到这件事,我得到的只是“以状态 1 退出”并没有任何意义,它就像一个一般的失败错误代码。
所以我想知道是否有任何方法可以知道这到底意味着什么?而且,你能在调用构造函数之前杀死子进程吗?就像用错误的方式修补错误一样。
这是一段代码:
$xslt = new XsltProcessor(); <--- Here it crashes apache every second time
$result = $xslt->xsltApplyStylesheet($xmlfile, $xsltfile);
if($result == NULL) {
$errCount = $xslt->getExceptionCount();
echo $errCount;
if($errCount>0){
echo 'Error: '.$xslt->getErrorMessage(0)." code:".$xslt->getErrorCode(0);
}
} else {
echo $result;
}
这是 saxon c 网站的链接:http://www.saxonica.com/saxon-c/index.xml
任何提示或建议将不胜感激,我尝试为父移动建议的 dll:子进程退出,状态为 3221226356 — 正在重新启动,但它对我没有任何作用。
【问题讨论】:
-
我认为你应该在saxonica.plan.io/projects/saxon-c提出问题