php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6819 php throws a fatal error when calling mcrypt_ecb()
Submitted: 2000-09-20 21:22 UTC Modified: 2000-09-25 04:42 UTC
From: wk at xtweb dot de Assigned:
Status: Closed Package: mcrypt related
PHP Version: 4.0.2 OS: RedHat 6.2 686 smp (2.2.14)
Private report: No CVE-ID: None
 [2000-09-20 21:22 UTC] wk at xtweb dot 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 ;-)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-20 22:32 UTC] wk at xtweb dot de
ooops - forgot to configure libmcrypt with the --disable-posix-threads option.
 [2000-09-25 04:42 UTC] derick@php.net
Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC