From: [EMAIL PROTECTED]
Operating system: RedHat 7.2
PHP version: 4.1.2
PHP Bug Type: Pspell related
Bug description: Timeout while checking on a string
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 bug report at http://bugs.php.net/?id=16288&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16288&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16288&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16288&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16288&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16288&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16288&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16288&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16288&r=submittedtwice