summaryrefslogtreecommitdiff
path: root/ext/mcrypt
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2001-12-17 20:18:16 +0000
committerDerick Rethans <derick@php.net>2001-12-17 20:18:16 +0000
commite51ce799afebac0977e6a1b3b0455c86569001ad (patch)
tree15679cf9e6724dd56da247087071117c45ec4bb4 /ext/mcrypt
parentf0c0b88fdddc349642f682d12b219795653be484 (diff)
downloadphp-git-e51ce799afebac0977e6a1b3b0455c86569001ad.tar.gz
- Try to be a little bit more sane dealing backwards compability
Diffstat (limited to 'ext/mcrypt')
-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
}