mcrypt_enc_is_block_mode()
(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)
检测打开的模式是否以分组方式输出
WarningThis function has beenDEPRECATEDas of PHP 7.1.0. Relying on this functionis highly discouraged.
说明
mcrypt_enc_is_block_mode(resource $td): bool
打开的模式是否以分组方式输出(例如,对于 cbc 和 ecb 模式而言返回TRUE
,对于 cfb 和流模式而言,返回FALSE
)。
参数
- $td
加密描述符。
返回值
如果模式以字节分组(字节块)方式输出,返回TRUE
,如果是以字节方式输出,返回FALSE
。