PHP 4.0 Bug #6819 Updated: php throws a fatal error when calling mcrypt_ecb()
| From: | Bug Database | Date: | Mon, 25 Sep 2000 08:42:33 +0000 |
| Subject: | PHP 4.0 Bug #6819 Updated: php throws a fatal error when calling mcrypt_ecb() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33615@lists.php.net to get a copy of this message | ||
ID: 6819
Updated by: derick
Reported By: wk@xtweb.de
Status: Closed
Bug Type: mcrypt related
Assigned To:
Comments:
Closed
Previous Comments:
---------------------------------------------------------------------------
[2000-09-20 22:32:25] wk@xtweb.de
ooops - forgot to configure libmcrypt with the --disable-posix-threads option.
---------------------------------------------------------------------------
[2000-09-20 21:22:42] wk@xtweb.de
Hi,
i tried to use the mcrypt function with php 4.0.2
so i compiled libmcrypt 2.4.4, then configured php with
./configure --with-mysql --with-apxs --with-mhash --with-mcrypt. Well, everything compiled fine
(since i added /usr/local/lib to /etc/ld.so.conf) but i can´t call mcrypt_ecb() in a script like
this:
<?
$enc_key = "my_freakin_secret_key";
$encryptstring = "foobar";
print "String to be encrypted: " . $encryptstring . "with encryptionkey :" .
$enc_key . "<br>n";
$encrypted = mcrypt_ecb(MCRYPT_TripleDES, $enc_key, $encryptstring, MCRYPT_ENCRYPT);
print "encrypted Result: " . $encrypted . "<br>n";
$decrypted = mcrypt_ecb(MCRYPT_TripleDES, $enc_key, $encrypted, MCRYPT_DECRYPT);
print "decrypted Result: " . $decrypted;
?>
There always comes up the message: "call to undefined function: mcrypt_ecb() in line..."
The mysql an the mhash functions work fine...
Has anyone an answer to this??
Would be great ;-)
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6819