From 6c4b0cb833d38e47d7d7ad890a0e0cd81263ac88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans-J=C3=BCrgen=20Petrich?= Date: Mon, 3 Jun 2013 06:39:18 +0700 Subject: [PATCH] RC4: removed __destruct() Re: https://github.com/phpseclib/phpseclib/issues/107 --- phpseclib/Crypt/RC4.php | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/phpseclib/Crypt/RC4.php b/phpseclib/Crypt/RC4.php index 8235e333..97f7ece1 100644 --- a/phpseclib/Crypt/RC4.php +++ b/phpseclib/Crypt/RC4.php @@ -486,33 +486,7 @@ class Crypt_RC4 { function disablePadding() { } - - /** - * Class destructor. - * - * Will be called, automatically, if you're using PHP5. If you're using PHP4, call it yourself. Only really - * needs to be called if mcrypt is being used. - * - * @access public - */ - function __destruct() - { - if ( CRYPT_RC4_MODE == CRYPT_RC4_MODE_MCRYPT ) { - $this->_closeMCrypt(); - } - } - - /** - * Properly close the MCrypt objects. - * - * @access prviate - */ - function _closeMCrypt() - { - mcrypt_module_close($this->encryptStream); - mcrypt_module_close($this->decryptStream); - } } // vim: ts=4:sw=4:et: -// vim6: fdl=1: \ No newline at end of file +// vim6: fdl=1: