【发布时间】:2015-05-14 02:23:10
【问题描述】:
PHP mcrypt_decrypt() 定义为
string mcrypt_decrypt ( string $cipher , string $key , string $data ,
string $mode [, string $iv ] )
如果$data 不是有效的mcrypt_encrypted 字符串,返回值是什么?
我使用的是 PHP 5.5.9。
我看到 PHP 5.6.0 已经包含了Return FALSE on failure。
但是在以前的 PHP 版本中如何检测失败呢?
【问题讨论】:
-
我猜它返回
false,他们只是忘了在文档中这么说。