PHP Conference Japan 2024

enchant_broker_free

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

enchant_broker_free釋放 broker 資源及其字典

警告

自 PHP 8.0.0 起已將此函式標記為 *已棄用*。強烈建議不要使用此函式。

說明

#[\Deprecated]
enchant_broker_free(EnchantBroker $broker): bool

釋放 broker 及其所有字典。從 PHP 8.0.0 開始,建議使用 unset 物件而不是呼叫此函式。

參數

broker

一個由 enchant_broker_init() 返回的 Enchant broker。

回傳值

成功時返回 true,失敗時返回 false

更新日誌

版本 說明
8.0.0 此函數已被棄用,建議改用取消設定物件的方式。
8.0.0 broker 現在需要一個 EnchantBroker 實例;先前需要的是 資源

參見

新增註解

使用者提供的註解

此頁面沒有使用者提供的註解。
To Top