Bug #58923 [Opn->Nab]: Requesting a PWL dict truncates the file
| From: | cmb@php.net | Date: | Mon, 02 Mar 2020 10:35:27 +0000 |
| Subject: | Bug #58923 [Opn->Nab]: Requesting a PWL dict truncates the file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225834@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=58923&edit=1
ID: 58923
Updated by: cmb@php.net
Reported by: nestor dot todorov at gmail dot com
Summary: Requesting a PWL dict truncates the file
-Status: Open
+Status: Not a bug
Type: Bug
-Package: enchant
+Package: Enchant related
Operating System: Linux 2.6.31
PHP Version: 5.2.10
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Indeed, that has been an upstream bug, which has been fixed long
ago.
Previous Comments:
------------------------------------------------------------------------
[2012-06-27 00:16:05] info at jianway dot co dot uk
Installing Enchant >= 1.6 fixes bug
------------------------------------------------------------------------
[2012-06-25 22:45:24] info at jianway dot co dot uk
Possibly relates to http://bugzilla.abisource.com/show_bug.cgi?id=12350
------------------------------------------------------------------------
[2012-06-25 22:11:39] info at jianway dot co dot uk
Reproduced
OS: CentOS 6.2
PHP: 5.3.3
Libenchant: 1.5.x
Personal word file is truncated as described above.
------------------------------------------------------------------------
[2009-10-28 08:04:10] nestor dot todorov at gmail dot com
Description:
------------
Calling enchant_broker_request_pwl_dict on a non-writable
file triggers an error ("Couldn't open personal wordlist").
Calling the method on a writable file truncates it.
Installed providers:
zemberek
/usr/lib/enchant/libenchant_zemberek.so
hspell
/usr/lib/enchant/libenchant_hspell.so
ispell
/usr/lib/enchant/libenchant_ispell.so
myspell
/usr/lib/enchant/libenchant_myspell.so
aspell
/usr/lib/enchant/libenchant_aspell.so
Software versions:
aspell_0.60.6-2_amd64
hunspell_1.2.8-4ubuntu2_amd64
ispell_3.1.20.0-4.5ubuntu1_amd64
hspell_1.0-4_amd64
Reproduce code:
---------------
$broker = enchant_broker_init();
$dictionary = enchant_broker_request_pwl_dict($broker, $dict_file);
var_dump($dictionary);
Expected result:
----------------
a resource representation of the custom dictionary
Actual result:
--------------
false
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=58923&edit=1