|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-11-25 14:57 UTC] beckman at purplecow dot com
Script:
$q = "foo";
$pl = pspell_new_personal("/usr/share/dict/acmovies","en");
$sug = pspell_suggest($pl,$q);
if (count($sug)>0) {
echo "Suggestions:<ul>";
while(list(,$val)=each($sug)) {
echo "<li>{$val}";
}
} else {
echo "No matches.";
}
}
Script runs when pspell_new_personal is not included (commented out). fails with pspell_new function as well.
Configure line:
'./configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd' '--without-mysql' '--with-gd=/usr/local' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-zlib' '--with-mysql=/usr/local' '--with-pspell=/usr/local' '--prefix=/usr/local' 'i386--freebsd4.4'
Server Version: Apache/1.3.22 (Unix) mod_gzip/1.3.19.1a PHP/4.0.6
Aspell: aspell-0.33.7.1
Pspell: pspell-0.12.2_1
Ispell: ispell-3.1.20c_2
mod_PHP: mod_php4-4.0.6_5
Apache error line:
[date] [notice] child pid X exit signal Abort trap (6)
Successfully compiled example-c and tested it in pspell.
All pspell and aspell directories and files are readable by nobody, directories executable for nobody (others).
httpd does not crash, the child gets an Abort trap (6). No backtrace available.
Not using Soblot.
PHP compiles correctly, everything works except that when I use pspell functions httpd crashes.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 09:00:01 2025 UTC |
Answers: 1. Built pspell from scratch again, uninstalled and reinstalled, su'ed to nobody, executed example-c with success, ran a few lookups. Cut and paste: --> su - nobody -c id uid=65534(nobody) gid=65534(nobody) groups=65534(nobody) --> su - nobody -c "`pwd`/example-c en" Using: en---aspell Type "h" for help. s recieve receive receiver Recife relieve received receives [...] 2. I wasn't sure what the pws format looked like, so I threw out the personal one and just tried pspell_new("en");, with no luck. I put an echo and exit before the pspell_new, and it works fine. Put an echo and an exit AFTER the pspell_new call, and it "Abort"s the apache thread. [Thu Nov 29 19:10:42 2001] [notice] child pid 79097 exit signal Abort trap (6) Could it be that we're running mod_gzip? I wouldn't think so, but we are using it. We are also using the Zend PHP Optimizer. I'm happy to install PHP on a FreeBSD box and give you access if you want to play, though it wouldn't be the box I'm having trouble with, and I haven't tested the pspell failure on that install.