php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14457 Pspell ceases to work on upgrade from 4.0.6 to 4.1.0
Submitted: 2001-12-12 09:09 UTC Modified: 2002-02-22 06:56 UTC
From: php at acerbus dot com Assigned:
Status: Closed Package: Pspell related
PHP Version: 4.1.0 OS: Linux 2.4.7 (RH7.2)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at acerbus dot com
New email:
PHP Version: OS:

 

 [2001-12-12 09:09 UTC] php at acerbus dot com
'./configure' '--with-mysql=/usr/local/mysql' '--with-apxs' '--enable-wddx' '--with-sablot' '--with-pspell=/usr/local/share' '--enable-force-cgi-redirect' '--with-gettext '--with-ldap'

Worked in 4.0.6 but not in 4.1.0

Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en".

$pspell_link = pspell_new ("en");

if (!pspell_check ($pspell_link, "testt")) {
    $suggestions = pspell_suggest ($pspell_link, "testt");

    foreach ($suggestions as $suggestion) {
        echo "Possible spelling: $suggestion<br>";
    }
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-13 23:37 UTC] vlad@php.net
It is strange it even compiled.
Are you sure that pspell is installed in
--with-pspell=/usr/local/share
and not in
--with-pspell=/usr/local
???

(e.g. do you have a directory 
/usr/local/include/pspell
or
/usr/local/share/include/pspell
if the former, you probably need to recompile PHP specifying the right directory)

Do you have a configure line for your 4.0.6 installation to compare against?
 [2001-12-17 09:46 UTC] php at acerbus dot com
 './configure' '--with-mysql=/usr/local/mysql' '--with-apxs' '--enable-wddx' '--with-sablot' '--with-pspell=/usr/local/pspell' '--enable-force-cgi-redirect' '--with-gettext' '--with-ldap' '--with-cpdflib=/usr/local' '--with-jpeg-dir' '--with-tiff-dir'

is the latest iteneration of my configuration.  This is the exact configuration I am using in a 4.0.6 installation.  Pspell does not work with the same using 4.1.0.

(I re-installed pspell to that directory just to make sure)
 [2001-12-28 21:52 UTC] vlad@php.net
... well, in the original bug report you had:
'--with-pspell=/usr/local/share'
and in the new one you have
'--with-pspell=/usr/local/pspell'
That's very different

I hope that you configured pspell with
'--prefix=/usr/local/pspell', right? Otherwise you should have just specified '--with-pspell' in php configure line instead.

First, how did you build pspell and aspell (what are the configure lines, versions, and in which order you built them)

Second, could you go into the directory with pspell source and from there to examples, and try to compile and run an example:

cd pspell/examples
make example-c
./example-c en
s helllo

and please tell if it gives you a list of suggestions for the misspelled word 'helllo'.

(I'll be in and out of the office for the next few days, so I might not respond in a timely manner)
 [2002-01-04 15:09 UTC] php at acerbus dot com
I did specify the /usr/local/pspell location in pspell's installation to see if it made any difference for 4.1.0 but it didn't.  Things continued working in 4.0.6.



I didn't save the procedure on installing pspell, I'm pretty sure the only parameter I passed was "./configure --prefix=/usr/local/pspell" and then made the modules.  I will write back when I attempt to upgrade to 4.1.0 again.



I don't know whether Aspell/Pspell merge did anything.


 [2002-01-15 16:24 UTC] clarkron at mail dot armstrong dot edu
pspell with php-4.1.1 causes apache-1.3.22ssl to core dump when starting apache. Same pspell using same configure options with php-4.0.6 works ok.
 [2002-02-22 06:56 UTC] yohgaki@php.net
This bug has been fixed in CVS.

I suppose this is fixed in CVS. Please reopen if you still have problem with CVS version.
 [2004-10-01 15:38 UTC] my at email dot pt
me too!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC