PHP "Crypt_Blowfish"类启动错误?

标签 php linux pear mcrypt blowfish

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

请帮忙!

最佳答案

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

error_reporting(error_reporting() & ~E_STRICT);

关于PHP "Crypt_Blowfish"类启动错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16600573/

相关文章:

php - 在 MAMP 上安装 PEAR

php - pear channel 更新后 SSL 被破坏 pear.php.net

php - PEAR 声称 php 是用旧模块编译的

php - 在 3 列中回显 php foreach 循环结果

php - 用于计算单列评级的复杂 SQL SELECT

php - 是否有一个 PHP 函数只在双引号而不是单引号中添加斜杠

c++ - 加载 SMFL 共享库时出错

php - Web REPL环境

linux - 从文本表示生成 UML 图

linux - 如何配置grails类路径以添加 "src/groovy"文件夹(在Linux环境中)?