我在Redhat上,並使用PHP Crypt_Blowfish
並出現以下錯誤。PHP CRYPT_BLOWFISH錯誤?
錯誤:
Notice: Constant CRYPT_BLOWFISH_AUTO already defined in /usr/share/pear/Crypt/Blowfish.php on line 33 Notice: Constant CRYPT_BLOWFISH_MCRYPT already defined in /usr/share/pear/Crypt/Blowfish.php on line 38 Notice: Constant CRYPT_BLOWFISH_PHP already defined in /usr/share/pear/Crypt/Blowfish.php on line 43 Fatal error: Cannot redeclare class Crypt_Blowfish in /usr/share/pear/Crypt/Blowfish.php on line 88
我的代碼僅僅是這樣的:
include_once('Blowfish.php');
$key = '12345678';
$cipher = new Crypt_Blowfish($key);
echo Eencrypt($cipher, "hello world!");
當我檢查我的php.ini
,則mcrypt
也已安裝並啓用。
- 出了什麼嚴重的錯誤嗎?