PHP 4.0 Bug #6819: php throws a fatal error when calling mcrypt_ecb()

From: Date: Thu, 21 Sep 2000 01:22:43 +0000
Subject: PHP 4.0 Bug #6819: php throws a fatal error when calling mcrypt_ecb()
Groups: php.dev 
Request: Send a blank email to php-dev+get-33486@lists.php.net to get a copy of this message
From: wk@xtweb.de Operating system: RedHat 6.2 686 smp (2.2.14) PHP version: 4.0.2 PHP Bug Type: mcrypt related Bug description: php throws a fatal error when calling mcrypt_ecb() 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 ;-)

« previous php.dev (#33486) next »