« 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 を返します。

エラー / 例外

dictionary が初期化されていないか、 enchant_broker_free_dict() で既に解放されているなどの理由で使用できない場合、 ValueError がスローされます。

変更履歴

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

参考

関連キーワード:
enchant   broker   dict   辞書   dictionary   request   リソース   EnchantDictionary   Enchant   unset   path   Deprecated   since   automatically   自体   初期化   理由   ValueError   インスタンス   resource
関連する関数・ページ:
function.enchant-dict-add   function.enchant-broker-request-pwl-dict   function.enchant-dict-describe   function.enchant-broker-request-dict   function.enchant-broker-dict-exists   function.enchant-dict-add-to-session

他のマニュアルの関連ページ