mcrypt_generic_deinit
(PHP 4 >= 4.0.7, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)
mcrypt_generic_deinit — 對加密模組進行清理工作
警告
本函式已自 PHP 7.1.0 起廢棄。強烈建議不要使用本函式。
說明
mcrypt_generic_deinit(resource
$td): bool 本函式終止由加密描述符(td)指定的加密模組,
它會清理緩衝區,但是並不關閉模組。
要想關閉加密模組,
你需要自行呼叫 mcrypt_module_close() 函式。
(但是 PHP 會在指令碼末尾為你關閉已打開的加密模組)
參數
-
td 加密描述符。
返回值
成功時返回 true, 或者在失敗時返回 false。
參見
- mcrypt_module_open() - 打開演算法和模式對應的模組
- mcrypt_generic_init() - 初始化加密所需的緩衝區