php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66933 Can not open/save dictionary using stream wrappers
Submitted: 2014-03-19 11:41 UTC Modified: -
Votes:2
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: Open Package: Pspell related
PHP Version: 5.5.10 OS: Debian
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Dec 16 13:01:24 2019 UTC