|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74869 Spelling issues
Submitted: 2017-07-06 19:50 UTC Modified: 2017-07-07 04:21 UTC
From: aviaialon at gmail dot com Assigned:
Status: Not a bug Package: Pspell related
PHP Version: 5.6.30 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
31 - 15 = ?
Subscribe to this entry?

 [2017-07-06 19:50 UTC] aviaialon at gmail dot com
From manual page:

Hi, im not sure if this a bug. but why would pspell even suggest words like this?

php -r ' print_r(pspell_suggest(pspell_new("en", null, null, null, \PSPELL_FAST | \PSPELL_RUN_TOGETHER), "kc1433xfc"));'

Test script:
php -r ' print_r(pspell_suggest(pspell_new("en", null, null, null, \PSPELL_FAST | \PSPELL_RUN_TOGETHER), "kc1433xfc"));'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-06 19:55 UTC] spam2 at rhsoft dot net
that's pretty sure the wrong bugtracker since PHP is only a wrapper
To compile PHP with pspell support, you need the aspell library, available from ยป
 [2017-07-07 03:47 UTC]
-Status: Open +Status: Not a bug -Package: Output Control +Package: Pspell related
 [2017-07-07 03:47 UTC]
If you're asking why pspell is attempting to find a spelling suggestion then, well, that's what it's supposed to do. Maybe don't run it on random nonsense?
If you're asking why pspell is suggesting something weird then that's a question for the aspell people.
 [2017-07-07 04:21 UTC] aviaialon at gmail dot com
Thank you requinix for clarifying that the user generated input was nonsense, i haven't noticed.

The nonsense mentionned above happened to be a slightly mistyped product code from a search page. Imagine the user's surprised when the site responded with: no results found. Did you mean cocksucker?

Ill defer to aspell for this.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Jan 23 23:01:23 2020 UTC