2013-05-16 28 views
0

我在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也已安裝並啓用。

enter image description here

  • 出了什麼嚴重的錯誤嗎?

回答

0

嚴格標準警告是錯誤。您可以輕鬆地將它們從error_reporting設置中刪除:

error_reporting(error_reporting() & ~E_STRICT);