PHP CRYPT_BLOWFISH错误? [英] PHP CRYPT_BLOWFISH Error?
问题描述
我在Redhat上使用PHP Crypt_Blowfish
,并且出现以下错误.
I'm on Redhat and using PHP Crypt_Blowfish
and having following error.
错误:
注意:第33行的/usr/share/pear/Crypt/Blowfish.php中已定义的常量CRYPT_BLOWFISH_AUTO注意:第38行的/usr/share/pear/Crypt/Blowfish.php中已定义的常量CRYPT_BLOWFISH_MCRYPT CRYPT_BLOWFISH_PHP已在第43行的/usr/share/pear/Crypt/Blowfish.php中定义致命错误:无法在第88行的/usr/share/pear/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
也已经安装并启用.
And when i check my php.ini
, the mcrypt
is also already installed and enabled.
- 请问发生了什么严重的错误?
推荐答案
严格的标准警告是 no 错误.您可以轻松地将它们从error_reporting设置中删除:
Strict standards warnings are no errors. You can remove them from your error_reporting setting easily:
error_reporting(error_reporting() & ~E_STRICT);
这篇关于PHP CRYPT_BLOWFISH错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!