]> granicus.if.org Git - php/commitdiff
doc for enchant Object move
authorRemi Collet <remi@php.net>
Wed, 13 May 2020 13:23:07 +0000 (15:23 +0200)
committerRemi Collet <remi@php.net>
Wed, 13 May 2020 13:23:07 +0000 (15:23 +0200)
NEWS
UPGRADING

diff --git a/NEWS b/NEWS
index 7d42d73cfc0d62083c6a29cb78fc1e43259120fe..d14ba56203a200e44aa39dc22d9d01ef9967646d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -44,9 +44,12 @@ PHP                                                                        NEWS
 - Enchant:
   . Add LIBENCHANT_VERSION macro
   . Deprecate enchant_broker_set_dict_path, enchant_broker_get_dict_path
-    enchant_dict_add_to_personal and enchant_dict_is_in_session
+    enchant_dict_add_to_personal, enchant_dict_is_in_session,
+    enchant_broker_free and enchant_broker_free_dict functions
+  . Deprecate ENCHANT_MYSPELL and ENCHANT_ISPELL constants
   . Add enchant_dict_add and enchant_dict_is_added functions
   . Use libenchant-2 when available
+  . Add object API
 
 - FPM:
   . Fixed bug #64865 (Search for .user.ini files from script dir up to
index 4bc75b2908015e4120c79124bc445c18372820e6..25dd9b5a09d6239954463e853e33f301029fdb25 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -217,6 +217,11 @@ PHP 8.0 UPGRADE NOTES
      * DOMUserDataHandler
      * DOMTypeInfo
 
+- Enchant:
+  . enchant_broker_init will now return an EnchantBroker object,
+    enchant_broker_request_dict and enchant_broker_request_pwl_dict will
+    now return an EnchantDict object rather than a resource.
+
 - Exif:
   . Removed read_exif_data(). exif_read_data() should be used instead.
 
@@ -507,6 +512,7 @@ PHP 8.0 UPGRADE NOTES
   . enchant_dict_add()
   . enchant_dict_is_added()
   . LIBENCHANT_VERSION macro
+  . New object API using EnchantBroker and EnchantDict
 
 - dom:
   . Introduce DOMParentNode and DOMChildNode with new traversal and manipulation APIs
@@ -544,6 +550,8 @@ PHP 8.0 UPGRADE NOTES
     not available in libenchant < 1.5 nor in libenchant-2
   . enchant_dict_add_to_personal, use enchant_dict_add instead
   . enchant_dict_is_in_session, use enchant_dict_is_added instead
+  . enchant_broker_free and enchant_broker_free_dict, unset the object instead
+  . ENCHANT_MYSPELL and ENCHANT_ISPELL constants
 
 - Zip:
   . Using empty file as ZipArchive is deprecated. Libzip 1.6.0