我的PHP Crypt_Blowfish
类启动会引发以下错误:
错误:
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/Crypt/Blowfish/MCrypt.php on line 155 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/Crypt/Blowfish.php on line 199 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/Crypt/Blowfish.php on line 142
简单代码:
<?php
include_once('/usr/share/pear/Crypt/Blowfish.php');
$cipher = new Crypt_Blowfish("_mysalt_");
?>
include
吗?但当我禁用include
时,它再次给出了:错误:
Fatal error: Class 'Crypt_Blowfish' not found in /var/www/html
那么严重的是什么呢?
Crypt_Blowfish
课堂好吗? (我正确地启动它还是有其他标准的方式来使用/启动它吗?)yum install php-pear-Crypt-Blowfish
和yum install perl-Crypt-Blowfish
。并且Apache重新启动。我还缺少什么吗?)请帮忙!
答案 0 :(得分:0)
严格的标准警告是 no 错误。您可以轻松地从error_reporting设置中删除它们:
error_reporting(error_reporting() & ~E_STRICT);