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/icap/php_icap.c | |
parent | 1cefd77f1c6ec98c23ba04998ca3a07c8c4e7b68 (diff) | |
download | php-git-3701bc420774c1b689f8a43f0ed891c99fea3cd2.tar.gz |
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
Diffstat (limited to 'ext/icap/php_icap.c')
-rw-r--r-- | ext/icap/php_icap.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/icap/php_icap.c b/ext/icap/php_icap.c index 24a46344d0..bc1653ce32 100644 --- a/ext/icap/php_icap.c +++ b/ext/icap/php_icap.c @@ -170,7 +170,7 @@ void php_icap_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) long flags=0; long cl_flags=0; int ind; - int myargc=ARG_COUNT(ht); + int myargc=ZEND_NUM_ARGS(); if (myargc <3 || myargc >4 || getParameters(ht, myargc, &calendar,&user,&passwd,&options) == FAILURE) { @@ -207,7 +207,7 @@ PHP_FUNCTION(icap_close) pval *options, *streamind; int ind, ind_type; pils *icap_le_struct=NULL; - int myargcount=ARG_COUNT(ht); + int myargcount=ZEND_NUM_ARGS(); long flags = 0; if (myargcount < 1 || myargcount > 2 || getParameters(ht, myargcount, &streamind, &options) == FAILURE) { @@ -252,7 +252,7 @@ PHP_FUNCTION(icap_reopen) int ind, ind_type; long flags=0; long cl_flags=0; - int myargc=ARG_COUNT(ht); + int myargc=ZEND_NUM_ARGS(); if (myargc<2 || myargc>3 || getParameters(ht,myargc,&streamind, &calendar, &options) == FAILURE) { WRONG_PARAM_COUNT; @@ -292,7 +292,7 @@ PHP_FUNCTION(icap_expunge) pval *start,*end; pils *icap_le_struct; - if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &streamind) == FAILURE) { + if (ZEND_NUM_ARGS() != 1 || getParameters(ht, 1, &streamind) == FAILURE) { WRONG_PARAM_COUNT; } @@ -321,7 +321,7 @@ PHP_FUNCTION(icap_fetch_event) int ind, ind_type; pils *icap_le_struct=NULL; CALEVENT *myevent; - int myargcount=ARG_COUNT(ht); + int myargcount=ZEND_NUM_ARGS(); if (myargcount < 1 || myargcount > 3 || getParameters(ht, myargcount, &streamind, &eventid,&options) == FAILURE) { WRONG_PARAM_COUNT; @@ -396,7 +396,7 @@ PHP_FUNCTION(icap_list_events) cal_list_t *my_cal_list; datetime_t begincal,endcal; int myargc; - myargc=ARG_COUNT(ht); + myargc=ZEND_NUM_ARGS(); if (myargc <2 || myargc > 3 || getParameters(ht,myargc,&streamind,&begindate,&enddate) == FAILURE) { WRONG_PARAM_COUNT; } @@ -476,7 +476,7 @@ PHP_FUNCTION(icap_create_calendar) pval *streamind, *calendar; int ind, ind_type; pils *icap_le_struct; - int myargc=ARG_COUNT(ht); + int myargc=ZEND_NUM_ARGS(); if (myargc <1 || myargc > 2 || getParameters(ht,myargc,&streamind,&calendar) == FAILURE) { WRONG_PARAM_COUNT; } @@ -511,7 +511,7 @@ PHP_FUNCTION(icap_rename_calendar) pval *streamind, *src_calendar,*dest_calendar; int ind, ind_type; pils *icap_le_struct; - int myargc=ARG_COUNT(ht); + int myargc=ZEND_NUM_ARGS(); if (myargc <2 || myargc > 3 || getParameters(ht,myargc,&streamind,&src_calendar,&dest_calendar) == FAILURE) { WRONG_PARAM_COUNT; } @@ -549,7 +549,7 @@ PHP_FUNCTION(icap_list_alarms) unsigned int msgno; cal_list_t *my_cal_list; - int myargc=ARG_COUNT(ht); + int myargc=ZEND_NUM_ARGS(); if (myargc != 3 || getParameters(ht,myargc,&streamind,&date,&time) == FAILURE) { WRONG_PARAM_COUNT; } @@ -620,7 +620,7 @@ PHP_FUNCTION(icap_delete_calendar) pval *streamind, *calendar; int ind, ind_type; pils *icap_le_struct; - int myargc=ARG_COUNT(ht); + int myargc=ZEND_NUM_ARGS(); if (myargc <1 || myargc > 2 || getParameters(ht,myargc,&streamind,&calendar) == FAILURE) { WRONG_PARAM_COUNT; } @@ -655,7 +655,7 @@ PHP_FUNCTION(icap_delete_event) pval *streamind, *uid; int ind, ind_type; pils *icap_le_struct; - int myargc=ARG_COUNT(ht); + int myargc=ZEND_NUM_ARGS(); if (myargc <1 || myargc > 2 || getParameters(ht,myargc,&streamind,&uid) == FAILURE) { WRONG_PARAM_COUNT; } @@ -707,7 +707,7 @@ PHP_FUNCTION(icap_store_event) int myargc; unsigned long uid; CALEVENT *myevent; - myargc=ARG_COUNT(ht); + myargc=ZEND_NUM_ARGS(); if (myargc !=2 || getParameters(ht,myargc,&streamind,&storeobject) == FAILURE) { WRONG_PARAM_COUNT; } @@ -852,7 +852,7 @@ PHP_FUNCTION(icap_snooze) pils *icap_le_struct; pval **pvalue; int myargc; - myargc=ARG_COUNT(ht); + myargc=ZEND_NUM_ARGS(); if (myargc !=2 || getParameters(ht,myargc,&streamind,&uid) == FAILURE) { WRONG_PARAM_COUNT; } |