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/standard/exec.c | |
parent | 1cefd77f1c6ec98c23ba04998ca3a07c8c4e7b68 (diff) | |
download | php-git-3701bc420774c1b689f8a43f0ed891c99fea3cd2.tar.gz |
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
Diffstat (limited to 'ext/standard/exec.c')
-rw-r--r-- | ext/standard/exec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/exec.c b/ext/standard/exec.c index 2b581d813a..ad57cfd266 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -200,7 +200,7 @@ static int _Exec(int type, char *cmd, pval *array, pval *return_value) PHP_FUNCTION(exec) { pval **arg1, **arg2, **arg3; - int arg_count = ARG_COUNT(ht); + int arg_count = ZEND_NUM_ARGS(); int ret; if (arg_count > 3 || zend_get_parameters_ex(arg_count, &arg1,&arg2, &arg3) == FAILURE) { @@ -237,7 +237,7 @@ PHP_FUNCTION(exec) PHP_FUNCTION(system) { pval **arg1, **arg2; - int arg_count = ARG_COUNT(ht); + int arg_count = ZEND_NUM_ARGS(); int ret; if (arg_count > 2 || zend_get_parameters_ex(arg_count, &arg1,&arg2) == FAILURE) { @@ -264,7 +264,7 @@ PHP_FUNCTION(system) PHP_FUNCTION(passthru) { pval **arg1, **arg2; - int arg_count = ARG_COUNT(ht); + int arg_count = ZEND_NUM_ARGS(); int ret; if (arg_count > 2 || zend_get_parameters_ex(arg_count, &arg1,&arg2) == FAILURE) { @@ -353,7 +353,7 @@ PHP_FUNCTION(shell_exec) pval **cmd; PLS_FETCH(); - if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1,&cmd)==FAILURE) { + if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1,&cmd)==FAILURE) { WRONG_PARAM_COUNT; } |