Skip to content

remove deprecated call and deprecate function to be removed in libenc… #5492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

remicollet
Copy link
Member

@remicollet remicollet commented Apr 29, 2020

…hant v2

Remove deprecated calls

  • enchant_dict_free_suggestions
  • enchant_dict_add_to_personal
  • enchant_dict_add_to_pwl
  • enchant_dict_is_in_session

Rename 2 functions to match new upstream and deprecate previous

  • enchant_dict_add_to_personal => enchant_dict_add
  • enchant_dict_is_in_session => enchant_dict_is_added

Deprecate optional functions which will be removed in v 2

  • enchant_broker_set_dict_path
  • enchant_broker_get_dict_path

Raise dependency on v1.4.2 (May 2008)
all distro seems to have v 1.6 (April 2010)

Add LIBENCHANT_VERSION macro

@remicollet remicollet requested a review from cmb69 April 29, 2020 13:26
@remicollet
Copy link
Member Author

With this proposal changes, build + test suite are OK using libenchant v1 and libenchant-2 (only need to change config.m4, will submit another PR when this one will be done)

@nikic
Copy link
Member

nikic commented Apr 29, 2020

This looks reasonable to me.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you very much!

@remicollet
Copy link
Member Author

Squashed and merged in 66d42e9

@remicollet remicollet closed this Apr 30, 2020
@remicollet remicollet deleted the issue-enchant-dep branch April 30, 2020 07:41
@carusogabriel carusogabriel added this to the PHP 8.0 milestone May 29, 2020
jrfnl added a commit to PHPCompatibility/PHPCompatibility that referenced this pull request Aug 10, 2020
> Deprecate enchant_broker_set_dict_path, enchant_broker_get_dict_path
> enchant_dict_add_to_personal and enchant_dict_is_in_session

Ref: https://github.com/php/php-src/blob/c0172aa2bdb9ea223c8491bdb300995b93a857a0/NEWS#L71

> - enchant_broker_set_dict_path and enchant_broker_get_dict_path
>    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

Refs:
* https://github.com/php/php-src/blob/c0172aa2bdb9ea223c8491bdb300995b93a857a0/UPGRADING#L662-L666
* php/php-src#5492
* php/php-src@66d42e9
* php/php-src#5577
* php/php-src@cd3e04d

Includes unit tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants