note 124906 rejected from function.pspell-store-replacement by cmb
| From: | cmb@php.net | Date: | Mon, 13 Apr 2020 09:17:06 +0000 |
| Subject: | note 124906 rejected from function.pspell-store-replacement by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-214467@lists.php.net to get a copy of this message | ||
Note Submitter: canhnm at opensource dot com dot vn
----
pspell_store_replacement does not work, it save empty file, exmple code below:
$pspell_config = pspell_config_create("vi");
pspell_config_personal($pspell_config, '/home/web/personal_dict_path.pws');
pspell_config_repl($pspell_config, '/home/web/personal_repl_path.repl'));
$pspell_link = pspell_new_config($pspell_config);
pspell_store_replacement($pspell_link, $misspelledWord, $wordToAdded);
$saveWordlist = pspell_save_wordlist($pspell_link);
Actually the file at /home/web/personal_repl_path.repl still touched by php as monitored and I see
that the last change of the file change everytime I run the code snipet above. But the content is
empty, only 1 line added: personal_repl-1.1 vi 0 utf-8