Bug #68476 [Asn->Csd]: [PATCH] configure does not recognise libenchant version
| From: | stas@php.net | Date: | Sun, 05 Jul 2015 08:22:05 +0000 |
| Subject: | Bug #68476 [Asn->Csd]: [PATCH] configure does not recognise libenchant version | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194139@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68476&edit=1
ID: 68476
Updated by: stas@php.net
Reported by: gunter at grodotzki dot co dot za
Summary: [PATCH] configure does not recognise libenchant
version
-Status: Assigned
+Status: Closed
Type: Bug
Package: Enchant related
Operating System: Darwin 14
-PHP Version: Irrelevant
+PHP Version: 5.6
Assigned To: pajoye
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Patch merged in 5.6 and master.
Previous Comments:
------------------------------------------------------------------------
[2014-11-21 21:02:49] gunter at grodotzki dot co dot za
Description:
------------
enchant includes two (still undocumented) functions since version 1.1.0:
* enchant_broker_set_dict_path
* enchant_broker_get_dict_path
Both of them only get activated if libenchant >= 1.5.0. Unfortunately there seems to be an error
in the configure script that will fail the version detection, even if a newer libenchant version is
installed.
I tested it on OSX, but the problem might exist on other Unix/Linux systems.
The fix seems to be trivial so I am adding a patch to it. A more experienced developer can surely
see much quicker if the patch is doing good or bad, than me.
Test script:
---------------
<?php
$broker = enchant_broker_init();
var_dump(enchant_broker_set_dict_path($broker, ENCHANT_MYSPELL, __DIR__));
Expected result:
----------------
bool(true)
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68476&edit=1