php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66933 Can not open/save dictionary using stream wrappers
Submitted: 2014-03-19 11:41 UTC Modified: 2020-03-10 10:14 UTC
Votes:3
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: anptr at inbox dot lv Assigned:
Status: Verified Package: Pspell related
PHP Version: 5.5.10 OS: Debian
Private report: No CVE-ID: None
 [2014-03-19 11:41 UTC] 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'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-03-10 10:14 UTC] cmb@php.net
-Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem
 [2020-03-10 10:14 UTC] cmb@php.net
pspell_config_personal() supports only proper filenames, which is
expected, but not documented.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 02:01:28 2024 UTC