« enchant_broker_free
enchant_broker_get_dict_path »

enchant_broker_free_dict

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0 )

enchant_broker_free_dict — 辞書リソースを解放する

警告

この関数は PHP 8.0.0 で 非推奨になります。この関数に頼らないことを強く推奨します。

説明

#[\Deprecated(
    since: '8.0',
    message: 'as EnchantDictionary objects are freed automatically',
)]

function enchant_broker_free_dict(EnchantDictionary $dictionary): bool

辞書を解放します。 PHP 8.0.0 以降では、この関数を呼び出す代わりに、オブジェクト自体を unset することを推奨します。

パラメータ

dictionary

enchant_broker_request_dict() または enchant_broker_request_pwl_dict() によって返される Enchant 辞書。

戻り値

成功した場合に true を、失敗した場合に false を返します。

変更履歴

バージョン 説明
8.0.0 この関数は、推奨されなくなりました。 オブジェクトを unset する方が好ましいです。
8.0.0 dictionary は、EnchantDictionary クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、resource が期待されていました。

参考

関連キーワード:
enchant   broker   dict   辞書   解放   free   request   リソース   推奨   EnchantDictionary   dictionary   Enchant   unset   期待   path   非推奨   Deprecated   since   message   objects   freed   automatically   自体   成功   履歴
関連する関数・ページ:
function.enchant-broker-request-pwl-dict   function.enchant-broker-request-dict   function.enchant-dict-describe   function.enchant-broker-get-dict-path   function.enchant-broker-dict-exists   function.enchant-dict-add