Skip to content

Commit cd3e04d

Browse files
Convert enchant resources to opaque objects
Additionally, deprecate ENCHANT_MYSPELL and ENCHANT_ISPELL constants. Closes phpGH-5577 Co-authored-by: Remi Collet <[email protected]>
1 parent f068442 commit cd3e04d

31 files changed

+341
-289
lines changed

UPGRADING

+6
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,12 @@ PHP 8.0 UPGRADE NOTES
224224
- Enchant:
225225
. enchant_broker_list_dicts(), enchant_broker_describe() and
226226
enchant_dict_suggest() will now return an empty array instead of null.
227+
. enchant_broker_init() will now return an EnchantBroker object rather than
228+
a resource. Return value checks using is_resource() should be replaced with
229+
checks for `false`.
230+
. enchant_broker_request_dict() and enchant_broker_request_pwl_dict() will now
231+
return an EnchantDictionary object rather than a resource. Return value checks
232+
using is_resource() should be replaced with checks for `false`.
227233

228234
- Exif:
229235
. Removed read_exif_data(). exif_read_data() should be used instead.

0 commit comments

Comments
 (0)