ID: 40759
User updated by: david at mytton dot net
Reported By: david at mytton dot net
-Status: Feedback
+Status: Open
Bug Type: Pspell related
Operating System: Windows XP
PHP Version: 5.2.1
New Comment:
In my comment 10 Mar 8:05pm UTC this is the test on Linux with the
output i.e. it is the same result as on Windows - not working.
Previous Comments:
------------------------------------------------------------------------
[2007-03-12 13:55:11] [EMAIL PROTECTED]
>This is with the bundled library with PHP i.e. php_pspell.dll on
Windows.
>So is that not a PHP problem?
In the previous post you said you also tested in on Linux (but didn't
say what was the result).
------------------------------------------------------------------------
[2007-03-12 13:49:26] david at mytton dot net
This is with the bundled library with PHP i.e. php_pspell.dll on
Windows. So is that not a PHP problem?
------------------------------------------------------------------------
[2007-03-12 09:41:06] [EMAIL PROTECTED]
So why is that PHP problem?
You pspell doesn't use your custom dictionary, I don't think PHP can
fix it.
------------------------------------------------------------------------
[2007-03-10 20:05:05] david at mytton dot net
I tested the code on another XP computer and also on my Linux server,
all with PHP 5.2.1 and it doesn't seem to work (even with full
permissions).
<?php
$spelling = pspell_new_personal('/home/site/public_html/custom.dict',
'en');
$suggestions = pspell_suggest($spelling, 'bloomsbur');
echo '<pre>'; print_r($suggestions); '</pre>';
?>
[EMAIL PROTECTED] [/home/site/public_html]# ls -al
...
-rwxrwxrwx 1 site site 32 Mar 10 19:57 custom.dict*
...
Output:
Array
(
[0] => blooms bur
[1] => blooms-bur
[2] => blooms
[3] => Bloom's
[4] => bloom's
[5] => bloomers
[6] => Bloomer
[7] => bloomer
)
------------------------------------------------------------------------
[2007-03-10 00:11:03] [EMAIL PROTECTED]
Works perfectly fine here, on Linux.
<?php
$spelling = pspell_new_personal('/tmp/.aspell.en.pws', 'en');
$suggestions = pspell_suggest($spelling, 'bloomsbur');
var_dump(print_r($suggestions));
?>
Array
(
[0] => blooms bur
[1] => blooms-bur
[2] => Bloomsbury
[3] => bloomsbury <--------
[4] => blooms
[5] => Bloom's
[6] => bloom's
)
bool(true)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/40759
--
Edit this bug report at http://bugs.php.net/?id=40759&edit=1