summaryrefslogtreecommitdiff
path: root/ext/mcrypt/mcrypt.c
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2006-06-26 16:33:39 +0000
committerHannes Magnusson <bjori@php.net>2006-06-26 16:33:39 +0000
commit223d122caeb65ab2f495891b604883b7db1b7032 (patch)
treed938ae32556611316acb6b2fe15b59ad5370dc2a /ext/mcrypt/mcrypt.c
parentd258bcd95122aad4d944cc601c1b0eeddd9a8d01 (diff)
downloadphp-git-223d122caeb65ab2f495891b604883b7db1b7032.tar.gz
MFH: use the ZEND_ACC_DEPRECATED flag rather than custom warnings
Diffstat (limited to 'ext/mcrypt/mcrypt.c')
-rw-r--r--ext/mcrypt/mcrypt.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c
index 4f04977652..afee47e99a 100644
--- a/ext/mcrypt/mcrypt.c
+++ b/ext/mcrypt/mcrypt.c
@@ -63,7 +63,7 @@ zend_function_entry mcrypt_functions[] = {
PHP_FE(mcrypt_generic_init, NULL)
PHP_FE(mcrypt_generic, NULL)
PHP_FE(mdecrypt_generic, NULL)
- PHP_FE(mcrypt_generic_end, NULL)
+ PHP_DEP_FALIAS(mcrypt_generic_end, mcrypt_generic_deinit, NULL)
PHP_FE(mcrypt_generic_deinit, NULL)
PHP_FE(mcrypt_enc_self_test, NULL)
@@ -604,16 +604,6 @@ PHP_FUNCTION(mcrypt_module_close)
/* }}} */
-/* {{{ proto bool mcrypt_generic_end(resource td)
- This function terminates encrypt specified by the descriptor td */
-PHP_FUNCTION(mcrypt_generic_end)
-{
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "This function is deprecated, please use mcrypt_generic_deinit()");
- zif_mcrypt_generic_deinit(INTERNAL_FUNCTION_PARAM_PASSTHRU);
-}
-/* }}} */
-
-
/* {{{ proto bool mcrypt_generic_deinit(resource td)
This function terminates encrypt specified by the descriptor td */
PHP_FUNCTION(mcrypt_generic_deinit)