backport fix for php5 error on cleanup()

This commit is contained in:
Miles Lott 2003-12-14 17:06:11 +00:00
parent e18438cdcc
commit 8afddf6b17

View File

@ -115,7 +115,14 @@
{
if ($this->mcrypt_version != 'old')
{
mcrypt_generic_end ($this->td);
if(phpversion >= '4.1.1')
{
mcrypt_generic_deinit($this->td);
}
else
{
mcrypt_generic_end($this->td);
}
}
}
}