summaryrefslogtreecommitdiff
path: root/ext/mcal/php_mcal.c
diff options
context:
space:
mode:
authorChuck Hagenbuch <chagenbu@php.net>2000-03-11 05:40:22 +0000
committerChuck Hagenbuch <chagenbu@php.net>2000-03-11 05:40:22 +0000
commit7b346d0a12510cddbba60a64e25c277fc4088d00 (patch)
tree3e2324c7088c6b5595dd8f7221698a9e077eb758 /ext/mcal/php_mcal.c
parentf42a770f65f83b89106ebc0a3f4b16bd3bc8e553 (diff)
downloadphp-git-7b346d0a12510cddbba60a64e25c277fc4088d00.tar.gz
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.
Diffstat (limited to 'ext/mcal/php_mcal.c')
-rw-r--r--ext/mcal/php_mcal.c4
1 files 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;
}