PHP pspell 问题
在搜索数值时,我遇到了 pspell 问题,结果是空白页和服务器日志中的分段错误:
[Fri Aug 21 10:08:43 2009] [notice] child pid 30064 exit signal Segmentation fault (11)
搜索字符串时,一切都按预期进行。下面是我正在使用的代码,
$pspell_link = pspell_new("en", "british", "", "",(PSPELL_FAST|PSPELL_RUN_TOGETHER));
if (!pspell_check($pspell_link, $_GET['search'])) {
$suggestions = pspell_suggest($pspell_link, $_GET['search']);
if($suggestions) {
### do stuff
}
}
我认为是 pspell_suggest 导致了错误。
预先感谢您的任何帮助!
I am having issues with pspell when searching for numeric values I end up with a blank white page and a segmentation fault in the server logs:
[Fri Aug 21 10:08:43 2009] [notice] child pid 30064 exit signal Segmentation fault (11)
When searching for a string everything works as expected. Below is the code I am using
$pspell_link = pspell_new("en", "british", "", "",(PSPELL_FAST|PSPELL_RUN_TOGETHER));
if (!pspell_check($pspell_link, $_GET['search'])) {
$suggestions = pspell_suggest($pspell_link, $_GET['search']);
if($suggestions) {
### do stuff
}
}
I think it is pspell_suggest that is causing the error.
Thanks in advance for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PHP 代码不应该出现段错误,因此这是您安装中的一个问题。确保您是最新的,并尝试确定(通过跟踪和错误)到底是什么触发了段错误。如果您已完全更新并且段错误仍然存在,请考虑将错误发布到 http://bugs.php.net/
PHP code should never segfault, so this is an issue in your installation. Make sure you are up to date and try determining (by trail and error) what exactly triggers the segfault. If you are completely up to date and the segfault remains, consider posting a bug to http://bugs.php.net/