39130

PHP CRYPT_BLOWFISH Error?

Question:

I'm on Redhat and using PHP Crypt_Blowfish and having following error.

ERROR:

<blockquote>

Notice: Constant CRYPT_BLOWFISH_AUTO already defined in /usr/share/pear/Crypt/Blowfish.php on line 33 Notice: Constant CRYPT_BLOWFISH_MCRYPT already defined in /usr/share/pear/Crypt/Blowfish.php on line 38 Notice: Constant CRYPT_BLOWFISH_PHP already defined in /usr/share/pear/Crypt/Blowfish.php on line 43 Fatal error: Cannot redeclare class Crypt_Blowfish in /usr/share/pear/Crypt/Blowfish.php on line 88

</blockquote>

My code is just something like:

include_once('Blowfish.php'); $key = '12345678'; $cipher = new Crypt_Blowfish($key); echo Eencrypt($cipher, "hello world!");

And when i check my php.ini, the mcrypt is also already installed and enabled.

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/wwrn9.png" data-original="https://i.stack.imgur.com/wwrn9.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

<ul><li>What went seriously wrong please?</li> </ul>

Answer1:

Strict standards warnings are <em>no</em> errors. You can remove them from your error_reporting setting easily:

error_reporting(error_reporting() & ~E_STRICT);

Recommend

  • PHP CRYPT_BLOWFISH Error?
  • Composer error installing laravel-cors
  • Hashing password in register and login do not match [duplicate]
  • Blowfish ECB Mode in BouncyCastle
  • Why can you not declare constants in methods with Ruby?
  • Linux: CPU benchmark requiring longer time and different CPU utilization levels
  • IRC blowfish encryption mode?
  • React extends class using ES5
  • symfony2 routing failed - cannot redeclare class
  • Integrate Wordpress CMS in CakePHP
  • Data signatures using Perl
  • Restrict the initial queryset to objects in pagination in django-restframework
  • How can you programmatically add a function to a nested namespace?
  • go variable scope and shadowing
  • Codeigniter+PhpBB function redeclaration
  • Home Brew PHP 7.2.5 Install with cURL
  • PHP SwiftMailer or PEAR Mail
  • X509Certificate2 p12 is store required?
  • Zend Failed opening Zend/Application.php
  • How to configure PhpUnit in Xampp?
  • Why Is jQuery Not Submitting This Form? (Or What Have I Done Wrong? :-p)
  • SvcUtil.exe vs Add Reference
  • Is there a perl module to validate passwords stored in “{crypt}hashedpassword” “{ssha}hashedpassword
  • Using $this when not in object context
  • How do I fake an specific browser client when using Java's Net library?
  • How reduce the height of an mschart by breaking up the y-axis
  • Perl system calls when running as another user using sudo
  • Upload files with Ajax and Jquery
  • Do I've to free mysql result after storing it?
  • A cron job substitute?
  • json Serialization in asp
  • Acquiring multiple attributes from .xml file in c#
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Java static initializers and reflection
  • How can I remove ASP.NET Designer.cs files?
  • unknown Exception android
  • Observable and ngFor in Angular 2
  • Unable to use reactive element in my shiny app
  • java string with new operator and a literal