From:             david at mytton dot net
Operating system: Windows XP
PHP version:      5.2.1
PHP Bug Type:     Pspell related
Bug description:  pspell_new_personsal does not load custom dictionary

Description:
------------
The personal dictionary does not appear to be used when asking pspell for
suggestions.

The same result occurs whether or not custom.dict actually exists. E.g. if
I change the filename to customdict no error is output and the output is
the same.

I tried this with the latest php_pspell.dll from
http://snaps.php.net/win32/php5.2-win32-200703081530.zip

Reproduce code:
---------------
<?php
$spelling = pspell_new_personal('C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\custom.dict', 'en');                
$suggestions = pspell_suggest($spelling, 'bloomsbur');
echo '<pre>'; print_r($suggestions); '</pre>';
?>

custom.dict:

personal_ws-1.1 en 1
bloomsbury

Expected result:
----------------
Array of suggestions including bloomsbury in the suggestions.

Actual result:
--------------
bloomsbury is not in the suggestions list:

Array
(
    [0] => blooms bur
    [1] => blooms-bur
    [2] => blooms
    [3] => Bloom's
    [4] => bloom's
    [5] => bloomers
    [6] => Bloomer
    [7] => bloomer
)

-- 
Edit bug report at http://bugs.php.net/?id=40759&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40759&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40759&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40759&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40759&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40759&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40759&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40759&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40759&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40759&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40759&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40759&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40759&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40759&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40759&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40759&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40759&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40759&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40759&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40759&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40759&r=mysqlcfg

Reply via email to