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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anptr at inbox dot lv
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 25 18:02:40 2024 UTC