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/calendar | |
parent | 1cefd77f1c6ec98c23ba04998ca3a07c8c4e7b68 (diff) | |
download | php-git-3701bc420774c1b689f8a43f0ed891c99fea3cd2.tar.gz |
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
Diffstat (limited to 'ext/calendar')
-rw-r--r-- | ext/calendar/cal_unix.c | 4 | ||||
-rw-r--r-- | ext/calendar/calendar.c | 2 | ||||
-rw-r--r-- | ext/calendar/easter.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/calendar/cal_unix.c b/ext/calendar/cal_unix.c index 3ff343a0bf..b23215c862 100644 --- a/ext/calendar/cal_unix.c +++ b/ext/calendar/cal_unix.c @@ -32,7 +32,7 @@ PHP_FUNCTION(unixtojd) long jdate; time_t t; struct tm *ta, tmbuf; - int myargc=ARG_COUNT(ht); + int myargc=ZEND_NUM_ARGS(); if ((myargc > 1) || (zend_get_parameters(ht,myargc, ×tamp) != SUCCESS)) { WRONG_PARAM_COUNT; @@ -59,7 +59,7 @@ PHP_FUNCTION(jdtounix) pval *jday; long uday; - if ((ARG_COUNT(ht)!= 1) || (zend_get_parameters(ht,1, &jday) != SUCCESS)) { + if ((ZEND_NUM_ARGS()!= 1) || (zend_get_parameters(ht,1, &jday) != SUCCESS)) { WRONG_PARAM_COUNT; } diff --git a/ext/calendar/calendar.c b/ext/calendar/calendar.c index 04f01f92c7..cacc09c4f1 100644 --- a/ext/calendar/calendar.c +++ b/ext/calendar/calendar.c @@ -249,7 +249,7 @@ PHP_FUNCTION(jdtogregorian) pval *julday, *mode; int day; char *daynamel, *daynames; - int myargc=ARG_COUNT(ht),mymode=0; + int myargc=ZEND_NUM_ARGS(),mymode=0; if ((myargc < 1) || (myargc > 2) || (zend_get_parameters(ht,myargc, &julday, &mode) != SUCCESS)) { WRONG_PARAM_COUNT; diff --git a/ext/calendar/easter.c b/ext/calendar/easter.c index b92cfbd114..d8e1f88599 100644 --- a/ext/calendar/easter.c +++ b/ext/calendar/easter.c @@ -34,7 +34,7 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, int gm) time_t the_time; long year, golden, solar, lunar, pfm, dom, tmp, easter; - switch(ARG_COUNT(ht)) { + switch(ZEND_NUM_ARGS()) { case 0: the_time = time(NULL); ta = localtime(&the_time); |