From: Chuck Hagenbuch Date: Sat, 11 Mar 2000 05:40:22 +0000 (+0000) Subject: switching the order of arguments of mcal_week_of_day() to be more flexible - X-Git-Tag: PHP-4.0-RC1~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b346d0a12510cddbba60a64e25c277fc4088d00;p=php 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. --- 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; }