Bug #16288 Updated: Timeout while checking on a string

From: Date: Wed, 27 Mar 2002 13:55:17 +0000
Subject: Bug #16288 Updated: Timeout while checking on a string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3479@lists.php.net to get a copy of this message
ID: 16288 Updated by: loginx@linkadmin.org Reported By: loginx@linkadmin.org -Status: Feedback +Status: Open Bug Type: Pspell related Operating System: RedHat 7.2 PHP Version: 4.1.2 Assigned To: vlad New Comment: I don't know if I'm supposed to open the bug report again or not... Previous Comments: ------------------------------------------------------------------------ [2002-03-26 20:44:08] loginx@linkadmin.org went in /usr/local/downloads (where I build packages before installing them) and built example-c, it works perfectly fine. my steps for installing pspell, aspell and php were: Pspell: cd /usr/local/download/pspell ./configure make make install cd ../aspell ./configure make make install cd ../pspell/modules ./add-modules cd ../../php ./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 ------------------------------------------------------------------------ [2002-03-26 18:12:20] vlad@php.net 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 :( ------------------------------------------------------------------------ [2002-03-26 09:56:28] loginx@linkadmin.org 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

« previous php.bugs (#3479) next »