0

我的 PHPCrypt_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请问如何使用课程?(我是否正确启动它或者是否有任何其他标准方式来使用/启动它?)
  • 或者,使用该类有什么要求?(我已经在我的 RHEL 上运行了这两个安装。yum install php-pear-Crypt-Blowfishyum install perl-Crypt-BlowfishApache Restarted。我还缺少什么吗?)

请帮忙!

4

1 回答 1

0

严格的标准警告是没有错误的。您可以轻松地将它们从您的 error_reporting 设置中删除:

error_reporting(error_reporting() & ~E_STRICT);
于 2013-05-17T08:02:13.467 回答