diff options
author | Andi Gutmans <andi@php.net> | 2000-06-05 19:47:54 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-06-05 19:47:54 +0000 |
commit | 3701bc420774c1b689f8a43f0ed891c99fea3cd2 (patch) | |
tree | 9bbc5d33a0a90e290889dbca3d8fa9bb1dfe38a9 /ext/mcrypt | |
parent | 1cefd77f1c6ec98c23ba04998ca3a07c8c4e7b68 (diff) | |
download | php-git-3701bc420774c1b689f8a43f0ed891c99fea3cd2.tar.gz |
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
Diffstat (limited to 'ext/mcrypt')
-rw-r--r-- | ext/mcrypt/mcrypt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c index e32c9422cd..f83076f983 100644 --- a/ext/mcrypt/mcrypt.c +++ b/ext/mcrypt/mcrypt.c @@ -186,7 +186,7 @@ PHP_FUNCTION(mcrypt_create_iv) int i; int n = 0; - if(ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &size, &psource) == FAILURE) { + if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &size, &psource) == FAILURE) { WRONG_PARAM_COUNT; } @@ -232,7 +232,7 @@ PHP_FUNCTION(mcrypt_get_cipher_name) pval **cipher; char *str, *nstr; - if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &cipher) == FAILURE) { + if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &cipher) == FAILURE) { WRONG_PARAM_COUNT; } @@ -255,7 +255,7 @@ PHP_FUNCTION(mcrypt_get_key_size) { pval **cipher; - if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &cipher) == FAILURE) { + if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &cipher) == FAILURE) { WRONG_PARAM_COUNT; } @@ -271,7 +271,7 @@ PHP_FUNCTION(mcrypt_get_block_size) { pval **cipher; - if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &cipher) == FAILURE) { + if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &cipher) == FAILURE) { WRONG_PARAM_COUNT; } @@ -287,7 +287,7 @@ PHP_FUNCTION(mcrypt_ofb) { MCRYPT_ARGS; - if(ARG_COUNT(ht) != 5 || + if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_ex(5, &cipher, &key, &data, &mode, &iv) == FAILURE) { WRONG_PARAM_COUNT; } @@ -309,7 +309,7 @@ PHP_FUNCTION(mcrypt_cfb) { MCRYPT_ARGS; - if(ARG_COUNT(ht) != 5 || + if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_ex(5, &cipher, &key, &data, &mode, &iv) == FAILURE) { WRONG_PARAM_COUNT; } @@ -331,7 +331,7 @@ PHP_FUNCTION(mcrypt_cfb) PHP_FUNCTION(mcrypt_cbc) { MCRYPT_ARGS; - int ac = ARG_COUNT(ht); + int ac = ZEND_NUM_ARGS(); if(ac < 4 || ac > 5 || zend_get_parameters_ex(ac, &cipher, &key, &data, &mode, &iv) == FAILURE) { @@ -362,7 +362,7 @@ PHP_FUNCTION(mcrypt_ecb) { MCRYPT_ARGS2; - if(ARG_COUNT(ht) != 4 || + if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_ex(4, &cipher, &key, &data, &mode) == FAILURE) { WRONG_PARAM_COUNT; } |