Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109910 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 47607 invoked from network); 29 Apr 2020 11:18:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Apr 2020 11:18:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 623671804F6 for ; Wed, 29 Apr 2020 02:52:08 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L3,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8560 212.227.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 29 Apr 2020 02:52:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1588153926; bh=iygVK9+vs1sp07ZyZHLHC6Jvn4RY0tPgpgB4I7+PJ5k=; h=X-UI-Sender-Class:Subject:From:To:References:Date:In-Reply-To; b=A75OzpxENLWfRCImf0Lpk95qeUmqbK8tQe2WJFVZQealtDmRTSu8oQaDjwOxaSjjI nXg7V0DDW009v+30ltJd+HvqKdBCuJBQypxSCUe3w/xoWkyxxDPsw5dtTJhIrQAV4K CGuxem8djpeG+Ub1VnXqYHHagLVqMUN5nsx/hLEs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.130] ([79.222.43.76]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MOA3F-1jnCBQ3CPp-00OXLY for ; Wed, 29 Apr 2020 11:52:05 +0200 To: PHP Internals References: Message-ID: Date: Wed, 29 Apr 2020 11:52:04 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:CdvszOF4Qswfiz+H2znpX/Ax47kJ0yD+9YU0183v4nA03/zpqcb hdtOcEuXemfsLr3oX5NLuNgwHoH3Vw3SNjtftXNM+ZvYaOQDQFdkSqhTdks09AdrBevxI77 tOKqti3NOcAVI4LUIvkGOF2YuO+/2q1uqrCW+lA0mkmKLDbyhD63UuitSIPIQRYDYWBrMGO ajX+n9doWo6qDlAyM3iqQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:nLp+db/3zUI=:vxLS35P3+BjXGU618R/05v 1eb8MlAP2gyPzRYlHdbn3QKeQd8IAniiCZdO/fPeQcBa6xQPb8JlZ9GkjXIP7aM5IVeDa1LCu xlg4zO/6vG2Dg9ZGng8EynWQpNjrpoQi67NHnRzrXSv0RiG6x01tSEmPWQsA0eD6UPONO8TmT PNwJuZEqVIVcPmnMIafokbvExXZreNkowEhk0GBiwp9ltJ4Yqkq9f3IYCRzhdSES5Audb1IUH KM2qFMn6ZL0oo+b0TMA1Plp7m02TmrPsCZEL2iq0whxQvRQSPwDWuQLf/2NcbMSpNddtLI30r R4xh25oqT04X9Qti08CChf9+sBtTpn1pclIT8hSf8nkCiclotbxTaSQpGjz3Cztp5rcaUnLG8 FuCkUIGGlb8h0LCzyAcJnBGb3a9NgMjgEmvNeeoSPP6tYy6bJsBdopw6vg9mBW7ubdWtcTh64 O2mhOIUYd+JklEPVz/ptALC0wDIwCDSZaP+iN36v4LJ6uG9pHeysp+RqHuknEQTcKW6Gfhiz3 /dCx/1NHGQFG8mE+d9M4h/Oj85J0llONAx52XkwmcKDsLRl86u+urkxvyIAjhGSdHKiz2c5nu JtMEjO0iRdU4Lh4w1whMKztfYJaSDW3IRQJubXnQfFlNJ5m+wTLEiRTXu0Ji7tnq7GMGXplA1 AcZ3KRLudBAThP4hDJMp3Zii3TTwCQX6b0e7Rxd7r6J2otqM/vrR0ygRZW4niEwXLoWoZwL+B X0tEqeNTyKoxQH+AL5JocD4geeJGCWh/FN9w52XJj2G7DbJK6h7kj4l/DK4TrHK+r1ZcI+R1d 37J7H4rTaOepHt5nj0YtTvN1P3g/RfU3+1VIhomlxQPVny3Ba2vDsaOZykvQmBjbmX/hyqdaM s4AhJe53j1aJUdvlxb4xMCgIbdNOd9Y4goNUMmsh+h3G3jrHjG2vigXJ6c3lNUzJb8pUZbjXM C0iOfAggef20esgQx1pigkIdblvgHbev+C/LH4oBbr1pMx4RamfOk6E+hsSzsZtz6LqTI8Cns e55L3j7AFICDckKtEKvmDguo9eyoPP9kfJoDu1IJ3GXbdjnvM0c2FVATbgv9U700qZrN4OEtH 7MxPadTEW5kIPLS4kF82/9mbVO6HftLO+vIGRfF/ewWNLnhkPPRBuHt4mweD8SU3UENhjUDhb g8NbFesAWIYRtuHujqSJntGKVVBEzokKpyX4+Uhq3Ww1gOp1oqKKFK6sWx9qE2MxoesqjcUsM nBB2lknwKPdslQh8X Subject: Re: Enchant 2 From: cmbecker69@gmx.de ("Christoph M. Becker") Hi all! On 12.10.2017 at 19:18, Christoph M. Becker wrote: > I've noticed the other day that Enchant 2.0.0 has been released in > August[1]. ext/enchant does not support Enchant 2 yet, however. Only a > few fixes are necessary to make it compile[2], but there is an issue > regarding the PHP functions enchant_broker_set_dict_path() and > enchant_broker_get_dict_path(), which rely on enchant_broker_get_param() > which has been completely removed. Instead there is now a single > function to specify the path where to look for the dictionary files: > enchant_set_prefix_dir()[3]. Apparently, it would be possible to store > the individual paths internally, and to call enchant_set_prefix_dir() > whenever a dictionary is requested or checked for existence, thus > retaining the old functionality. > > I have some doubts if this would be sensible, though, because > enchant_broker_(s|g)et_dict_path() only supported the Ispell and > Myspell/Hunspell back-ends anyway. Instead it may be more reasonable to > introduce a new PHP function enchant_set_prefix_dir() which would > directly map to the C function with the same name. Depending on whether > ext/enchant had been compiled with Enchant 1 and 2, respectively, the > other function(s) would not be available. If done this way, the > constants PHP_ENCHANT_MYSPELL and PHP_ENCHANT_ISPELL should neither be > available, if compiled with Enchant 2, because they are only useful for > enchant_broker_(s|g)et_dict_path(). > > Somewhat related to supporting Enchant 2 would be the question if we can > lift the requirements to Enchant 1.6.0 (released 2010-04-01). This > version introduced enchant_get_version() (which is still there in > Enchant 2), and would allow us to simplify and clean the libenchant > version info in PHP info[4]. > > Thoughts? Would that require an RFC? > > [1] > [2] > [3] > [4] > Apparently, not much has been changed in the meantime, besides that new Enchant 2 releases are rolled out regularly. The latest release of Enchant 1 (1.6.1) happened on 2017-02-08, and I don't expect to see new Enchant 1 releases. This basically means that we rely on an unmaintained library. So if nobody is interested in bringing ext/enchant up-to-date with Enchant 2, it might be best to unbundle the extension. Thoughts? =2D- Christoph M. Becker