php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22520 Undefined function: mcrypt_generic_deinit()
Submitted: 2003-03-03 12:48 UTC Modified: 2003-06-11 05:28 UTC
From: ermannov at netscape dot net Assigned:
Status: Closed Package: mcrypt related
PHP Version: 4.3.0 OS: Windows NT 4
Private report: No CVE-ID:
 [2003-03-03 12:48 UTC] ermannov at netscape dot net
Script:
<?php
    $key = "this is a secret key";
    $input = "Let us meet at 9 o'clock at the secret place.";

    $td = mcrypt_module_open ('tripledes', '', 'ecb', '');
    $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td), MCRYPT_RAND);
    mcrypt_generic_init ($td, $key, $iv);
    $encrypted_data = mcrypt_generic ($td, $input);
    mcrypt_generic_deinit ($td);
    mcrypt_module_close ($td);
?>

Modules:
extension=php_cpdf.dll
extension=php_curl.dll
extension=php_dbg.dll
extension=php_dbx.dll
extension=php_domxml.dll
extension=php_exif.dll
extension=php_gd.dll
extension=php_java.dll
extension=php_mcrypt.dll
extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_openssl.dll
extension=php_pdf.dll
extension=php_sockets.dll
extension=php_w32api.dll
extension=php_xmlrpc.dll
extension=php_xslt.dll
extension=php_zip.dll

Info:
The script provided is the same of the php mcrypt documentation.
It happens on NT4 and php 4.3.1 as well

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-03 13:09 UTC] iliaa@php.net
What does var_dump(extension_loaded("mcrypt")); returns?
 [2003-03-03 13:44 UTC] ermannov at netscape dot net
bool(true), of course
Anyway, if I hadn't loaded the extension, any function would have reported an error.
It's interesting that dependency walker doesn't see that function; it does see all the other mcrypt functions.
 [2003-03-03 15:26 UTC] edink@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2003-06-11 02:33 UTC] gk at gkrenzer dot de
Is there a php_mcrypt.dll/libmcrypt.dll available (binary), where the bug is nomore alive?
 [2003-06-11 04:50 UTC] ermannov at netscape dot net
php 4.3.2 windows binary
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 01:01:56 2014 UTC