Bug #68476 [Opn->Asn]: [PATCH] configure does not recognise libenchant version

From: Date: Tue, 17 Feb 2015 01:54:10 +0000
Subject: Bug #68476 [Opn->Asn]: [PATCH] configure does not recognise libenchant version
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190723@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: felipe@php.net Reported by: gunter at grodotzki dot co dot za Summary: [PATCH] configure does not recognise libenchant version -Status: Open +Status: Assigned Type: Bug Package: Enchant related Operating System: Darwin 14 PHP Version: Irrelevant -Assigned To: +Assigned To: pajoye Block user comment: N Private report: N 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

« previous php.bugs (#190723) next »