From: Derick Rethans Date: Mon, 17 Dec 2001 20:18:16 +0000 (+0000) Subject: - Try to be a little bit more sane dealing backwards compability X-Git-Tag: PRE_ISSET_PATCH~493 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e51ce799afebac0977e6a1b3b0455c86569001ad;p=php - Try to be a little bit more sane dealing backwards compability --- diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c index 6f8dbfe420..5a19b5c4dd 100644 --- a/ext/mcrypt/mcrypt.c +++ b/ext/mcrypt/mcrypt.c @@ -678,9 +678,11 @@ PHP_FUNCTION(mcrypt_generic_end) MCRYPT_GET_TD_ARG #if HAVE_MCRYPT_GENERIC_DEINIT - php_error(E_WARNING, "mcrypt_generic_end is deprecated, please use mcrypt_generic_deinit"); -#endif + php_error(E_NOTICE, "mcrypt_generic_end is deprecated, please use mcrypt_generic_deinit"); + if (mcrypt_generic_deinit (td) < 0) { +#else if (mcrypt_generic_end (td) < 0) { +#endif php_error (E_WARNING, "could not terminate encryption specifier"); RETURN_FALSE }