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