Date: 04/05/01
- Next message: Chuck Hagenbuch: "Re: [PHP-DEV] RE: ; arg seperator"
- Previous message: bogac <email protected>: "[PHP-DEV] PHP 4.0 Bug #10188: Problem in loading dynamic module (Desc. below)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 10187
User Update by: clewis <email protected>
Status: Assigned
Bug Type: mcrypt related
Description: Warning: mcrypt module initialization failed
Incidentally, I tried the new-style mcrypt functions as
Colin suggested, and got a similar warning: "Could not open
encryption module."
Previous Comments:
---------------------------------------------------------------------------
[2001-04-05 11:30:47] derick <email protected>
analysed > assigned
---------------------------------------------------------------------------
[2001-04-05 11:30:06] derick <email protected>
Another mcrypt bug, I'll check this one out. It may be a platform depended bug BTW.
---------------------------------------------------------------------------
[2001-04-05 11:29:52] cmv <email protected>
First, the "--disable-posix-threads" requirement for libmcrypt isn't a requirement anymore. As of libmcrypt 2.4.x, you don't need it.
Second, I think you should be using the 2.4.x-style mcrypt functions. Look at example 2 at http://www.php.net/manual/en/ref.mcrypt.php
Third, blowfish is broken in libmcrypt. It will encode/decode internally, but don't rely on it if you need to pass data to a non-PHP application (e.g. Perl).
- Colin
---------------------------------------------------------------------------
[2001-04-05 11:24:02] clewis <email protected>
Using libmcrypt-2.4.10 on Mac OS X 10.0, compiled with
--with-apache=/usr/local/src/apache_1.3.19 --with-mysql=/
usr/local --with-mcrypt --enable-track-vars --disable-debug
My sample script:
<?php
$stuff = mcrypt_cbc(MCRYPT_BLOWFISH,"This is my key","this
is my message",MCRYPT_ENCRYPT);
print base64_encode($stuff);
?>
produces this error:
Warning: mcrypt module initialization failed in /Users/
clewis/dev/website/public/asdf.php on line 3
libmcrypt was compiled with --disable-posix-threads as
suggested on the PHP mcrypt page.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10187
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Chuck Hagenbuch: "Re: [PHP-DEV] RE: ; arg seperator"
- Previous message: bogac <email protected>: "[PHP-DEV] PHP 4.0 Bug #10188: Problem in loading dynamic module (Desc. below)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

