Bug->Doc #66933 [Opn->Ver]: Can not open/save dictionary using stream wrappers

From: Date: Tue, 10 Mar 2020 10:14:47 +0000
Subject: Bug->Doc #66933 [Opn->Ver]: Can not open/save dictionary using stream wrappers
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17391@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66933&edit=1 ID: 66933 Updated by: cmb@php.net Reported by: anptr at inbox dot lv Summary: Can not open/save dictionary using stream wrappers -Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem Package: Pspell related Operating System: Debian PHP Version: 5.5.10 Block user comment: N Private report: N New Comment: pspell_config_personal() supports only proper filenames, which is expected, but not documented. Previous Comments: ------------------------------------------------------------------------ [2014-03-19 11:41:59] anptr at inbox dot lv Description: ------------ --- From manual page: http://www.php.net/function.pspell-save-wordlist --- Test script: --------------- $config = pspell_config_create('lv', '', '', 'utf-8'); pspell_config_personal($config, 'file:///data/lv.txt'); $pspell_link = pspell_new_config($config); // word exists in dictionary, but result is false pspell_check($this->_pspell_link, 'something') pspell_add_to_personal($this->_pspell_link, 'SIA'); pspell_save_wordlist($this->_pspell_link); Expected result: ---------------- Given word should be added to dictionary file. File is writable. Without stream wrapper (eg '/data/lv.txt') everything works as it should. Actual result: -------------- Gives error 'The file "/var/www/file:///data/lv.txt" can not be opened for writing' ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66933&edit=1

« previous php.doc.bugs (#17391) next »