ID: 39921 User updated by: php at daniel15 dot com -Reported By: dansoftaus at yahoo dot com dot au +Reported By: php at daniel15 dot com Status: Open Bug Type: Pspell related Operating System: GNU/Linux PHP Version: 4.4.4 New Comment:
Additionally, checking it through the Aspell executable has correct results: ========== [EMAIL PROTECTED]:/home/daniel# cat test_words spel spell spelll speling spelling spellling [EMAIL PROTECTED]:/home/daniel# cat test_words | aspell list spel spelll speling spellling [EMAIL PROTECTED]:/home/daniel# aspell -v @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.4) ============ Previous Comments: ------------------------------------------------------------------------ [2006-12-21 10:09:21] php at daniel15 dot com Description: ------------ OS: Debian GNU/Linux PHP version: 4.4.4 Aspell version: 0.60.4 Using pspell_check returns incorrect results for some words. For example, it marks spellling and permanate are being spelt correctly, and online as being spelt incorrectly Reproduce code: --------------- <?php // Code from http://www.simplemachines.org/community/index.php?topic=125497.msg802209#msg802209 $pspell_link = pspell_new('en', 'american', '', 'UTF-8', PSPELL_FAST | PSPELL_RUN_TOGETHER); $tests = array( 'spel', 'spell', 'spelll', 'speling', 'spelling', 'spellling', ); foreach ($tests as $test) echo $test, '->', pspell_check($pspell_link, $test) ? 'correct' : 'incorrect', '<br />'; ?> Expected result: ---------------- spel->incorrect spell->correct spelll->incorrect speling->incorrect spelling->correct spellling->incorrect Actual result: -------------- spel->incorrect spell->correct spelll->incorrect speling->incorrect spelling->correct spellling->correct (notice the last result) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39921&edit=1