ID: 16288
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Feedback
Bug Type: Pspell related
Operating System: RedHat 7.2
PHP Version: 4.1.2
-Assigned To:
+Assigned To: vlad
New Comment:
I use the *exact* same configuration on my test box and it works
(redhat7.2, php4.1.2, same exact versions of pspell and aspell).
Two questions:
- can you build and run a sample app in pspell/examples directory?
(e.g. 'make example-c' followed by './example-c en')?
- what are your build steps when building aspell and pspell, and in
which exact order?
I suspect misconfiguration :(
Previous Comments:
------------------------------------------------------------------------
[2002-03-26 09:56:28] [EMAIL PROTECTED]
Hi,
After having a few problems with the RedHat's pre-installed RPM's for
Aspell and Pspell, I decided to remove them and grab the latest
versions on the official website, versions:
aspell-.33.7.1
pspell-.12.2
php 4.1.2
I first compiled pspell (./configure ; make ; make install)
then aspell the same way
then in the modules dir for pspell I did ./add-modules and it seemed to
work, then I simply compiled PHP with:
./configure --with-apxs=/usr/sbin/apxs
--with-sybase=/usr/local/freetds/ --with-pdflib --enable-debug
--enable-trans-sid --with-pspell ; make ; make install ;
/etc/init.d/httpd restart ; echo all done
And everything seemed to work so far but then while calling a simple
script, I get the following error:
Fatal error: Maximum execution time of 30 seconds exceeded in
/var/www/html/spellcheck.php on line 9...
here is the script:
<?php
$string = "checking the pspell iinterface";
echo $string . "<br>\n";
$string = str_replace(",", "", $string);
$keys = explode(" ", $string);
$mylink = pspell_new("en");
foreach($keys as $value)
{
if (!(pspell_check($mylink, $value)))
{
echo "$value - invalid spelling";
$suggest = pspell_suggest($mylink, $value);
echo "<br>Suggesting $suggest";
}
}
Did they break backward source compatibility again or is it a problem
with my config or install ?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16288&edit=1