[PHP] Mcrypt fails to run

2001-07-10 Thread Dixie Flatline

Greetings!

I'm running Debian Potato 2.2.19 with php 4.0.4-pl1. I'd recently compiled
an Mcrypt.so module, then added the extension line into my php.ini file.
After reloading Apache and trying to run any php script which includes ANY
mcrypt related function, the code immediately halts and no output is given.
There aren't any errors in my log files, so I don't know what could be the
problem :(.

I'm using libmcrypt 2.4.15 and MCrypt 2.5.7.

Best Regards,

Dixie Flatline



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php 4.0.6 problems with mcrypt

2001-07-21 Thread Dixie Flatline

Greetings!

I've compiled a new php 4.0.6 as an apache module with added mcrypt support.
When I invoke the following code:

-
function hex2bin($data) {
$len = strlen($data);
return pack("H" . $len, $data);
}

$iv = mcrypt_create_iv (mcrypt_get_iv_size (MCRYPT_BLOWFISH,
MCRYPT_MODE_CBC), MCRYPT_RAND);
echo $iv."";
$iv_hex = bin2hex($iv);
echo hex2bin($iv_hex)."";

$key = "This is a very secret key";
$text = "Meet me at 11 o'clock behind the monument.";

$crypttext = mcrypt_encrypt (MCRYPT_BLOWFISH, $key, $text, MCRYPT_MODE_CBC,
$iv);

echo mcrypt_decrypt (MCRYPT_BLOWFISH, $key, $crypttext, MCRYPT_MODE_CBC,
$iv);
-

php gives an error at this line:
$crypttext = mcrypt_encrypt (MCRYPT_BLOWFISH, $key, $text, MCRYPT_MODE_CBC,
$iv);

Fatal error: generic_init failed in /var/www/www.hardwired.hu/html/a.hw on
line 19

And my apache log contains the following:
can't close resident module


What could be the problem?

I've got Debian Potato 2.2.19 with Apache 1.3.20 and PHP 4.0.6.


Best Regards,

Dixie Flatline



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php 4.0.6 session problem

2001-07-21 Thread Dixie Flatline

Greetings!

I'm using php 4.0.6 on a Debian 2.2.19 Potato with Apache 1.3.20. When I
invoke the session_start() function, it creates a

http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]