2013-05-17 2 views
0

내 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-Blowfishyum install perl-Crypt-Blowfish. 그리고 아파치 재시작하는에이 두 가지 설치를 실행했다. 난 여전히 뭔가를 놓치고 있습니까?)

도와주세요!

답변

0

엄격한 표준 경고는 아니요 오류입니다. error_reporting 설정에서 쉽게 제거 할 수 있습니다.

error_reporting(error_reporting() & ~E_STRICT); 
+0

오류가 있습니까? 그렇다면 왜 코드가 작동하지 않는지 궁금합니다. –