From 7b346d0a12510cddbba60a64e25c277fc4088d00 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sat, 11 Mar 2000 05:40:22 +0000 Subject: [PATCH] switching the order of arguments of mcal_week_of_day() to be more flexible - day, month, year now so that month and year can be defaulted at some point. this is also consistent with the library function. --- ext/mcal/php_mcal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/mcal/php_mcal.c b/ext/mcal/php_mcal.c index e49bf7fb02..4bc435e8ea 100644 --- a/ext/mcal/php_mcal.c +++ b/ext/mcal/php_mcal.c @@ -1256,7 +1256,7 @@ PHP_FUNCTION(mcal_day_of_year) } /* }}} */ -/* {{{ proto int mcal_week_of_year(int year, int month, int day) +/* {{{ proto int mcal_week_of_year(int day, int month, int year) Returns the week number of the given date */ PHP_FUNCTION(mcal_week_of_year) { @@ -1264,7 +1264,7 @@ PHP_FUNCTION(mcal_week_of_year) int myargc; myargc = ARG_COUNT(ht); - if (myargc != 3 || getParameters(ht,myargc,&year,&month,&day) == FAILURE) { + if (myargc != 3 || getParameters(ht,myargc,&day,&month,&year) == FAILURE) { WRONG_PARAM_COUNT; } -- 2.50.1