summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/mcrypt/mcrypt.c6
1 files changed, 4 insertions, 2 deletions
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
}