enchant-2.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --- ext/enchant/config.m4.orig
  2. +++ ext/enchant/config.m4
  3. @@ -4,7 +4,7 @@
  4. [Include Enchant support])])
  5. if test "$PHP_ENCHANT" != "no"; then
  6. - PKG_CHECK_MODULES([ENCHANT], [enchant])
  7. + PKG_CHECK_MODULES([ENCHANT], [enchant-2])
  8. PHP_EVAL_INCLINE($ENCHANT_CFLAGS)
  9. PHP_EVAL_LIBLINE($ENCHANT_LIBS, ENCHANT_SHARED_LIBADD)
  10. --- ext/enchant/enchant.c.orig
  11. +++ ext/enchant/enchant.c
  12. @@ -738,7 +738,7 @@
  13. for (i = 0; i < n_sugg; i++) {
  14. add_next_index_string(sugg, suggs[i]);
  15. }
  16. - enchant_dict_free_suggestions(pdict->pdict, suggs);
  17. + enchant_dict_free_string_list(pdict->pdict, suggs);
  18. }
  19. @@ -793,7 +793,7 @@
  20. add_next_index_string(return_value, suggs[i]);
  21. }
  22. - enchant_dict_free_suggestions(pdict->pdict, suggs);
  23. + enchant_dict_free_string_list(pdict->pdict, suggs);
  24. }
  25. }
  26. /* }}} */
  27. @@ -813,7 +813,7 @@
  28. PHP_ENCHANT_GET_DICT;
  29. - enchant_dict_add_to_personal(pdict->pdict, word, wordlen);
  30. + enchant_dict_add(pdict->pdict, word, wordlen);
  31. }
  32. /* }}} */
  33. @@ -851,7 +851,7 @@
  34. PHP_ENCHANT_GET_DICT;
  35. - RETURN_BOOL(enchant_dict_is_in_session(pdict->pdict, word, wordlen));
  36. + RETURN_BOOL(enchant_dict_is_added(pdict->pdict, word, wordlen));
  37. }
  38. /* }}} */