|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-04-09 13:07 UTC] ab@php.net
[2013-04-09 13:07 UTC] ab@php.net
-Status: Open
+Status: Feedback
[2013-04-09 13:40 UTC] wschalle at gmail dot com
[2013-04-09 13:40 UTC] wschalle at gmail dot com
-Status: Feedback
+Status: Open
[2013-04-09 14:01 UTC] ab@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: ab
[2013-04-09 14:01 UTC] ab@php.net
[2013-04-09 15:05 UTC] wschalle at gmail dot com
[2013-04-09 15:26 UTC] ab@php.net
[2013-04-09 16:46 UTC] wschalle at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 13:00:01 2025 UTC |
Description: ------------ This bug was introduced in 5.3.23. It also exists in 5.4.13. Both the CLI and CGI SAPIs are affected. When the enchant broker is initialized, it seems to silently fail to load the backends. Enchant_broker_get_error returns false, and nothing is logged to the php error log or the system event viewer. I tested this with the public win32 VC9 NTS zips of PHP. I verified that 5.3.22 works as expected, with enchant_broker_describe listing both ISPELL and MYSPELL backends. Looking at the diffs from 5.3.22 to 5.3.23, the most likely culprit seems to be either the win32 registry.c change, or maybe the directory changes. Either way, downgrading to 5.3.22 is currently still a viable workaround. Test script: --------------- $broker = enchant_broker_init(); enchant_broker_set_dict_path($broker, ENCHANT_MYSPELL, __DIR__); var_dump(enchant_broker_describe($broker)); var_dump(enchant_broker_get_error($broker)); Expected result: ---------------- array(2) { [0]=> array(3) { ["name"]=> string(6) "ispell" ["desc"]=> string(15) "Ispell Provider" ["file"]=> string(35) "C:\PHP-5.3.x\libenchant_ispell.dll" } [1]=> array(3) { ["name"]=> string(7) "myspell" ["desc"]=> string(16) "Myspell Provider" ["file"]=> string(36) "C:\PHP-5.3.x\libenchant_myspell.dll" } } bool(false) Actual result: -------------- NULL bool(false)