]> granicus.if.org Git - php/commitdiff
switching the order of arguments of mcal_week_of_day() to be more flexible -
authorChuck Hagenbuch <chagenbu@php.net>
Sat, 11 Mar 2000 05:40:22 +0000 (05:40 +0000)
committerChuck Hagenbuch <chagenbu@php.net>
Sat, 11 Mar 2000 05:40:22 +0000 (05:40 +0000)
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

index e49bf7fb02186574b02da77d8afe1abd88be65ee..4bc435e8ea9d281137b14adffaf352053e6b96f8 100644 (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;
        }