我的PHP Crypt_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-Blowfish
和yum install perl-Crypt-Blowfish
。而阿帕奇的重新開始運行此兩種安裝方式。我仍然失去了一些東西?)
請幫幫忙!
沒有錯誤?如果是這樣,我想知道爲什麼代碼不工作呢? –