1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 16:38:25 +02:00

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.
This commit is contained in:
Chuck Hagenbuch
2000-03-11 05:40:22 +00:00
parent f42a770f65
commit 7b346d0a12
+2 -2
View File
@@ -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;
}