diff options
author | Chuck Hagenbuch <chagenbu@php.net> | 2000-03-01 01:34:05 +0000 |
---|---|---|
committer | Chuck Hagenbuch <chagenbu@php.net> | 2000-03-01 01:34:05 +0000 |
commit | c87f13951f6cb45298ad7e8f2b43f4793249399f (patch) | |
tree | 57dffb7c5f4642dca3a62611b354d4edb85e21ba /ext/mcal/php_mcal.c | |
parent | e37ddc136895a1356d9b40a668181d888f1ca28c (diff) | |
download | php-git-c87f13951f6cb45298ad7e8f2b43f4793249399f.tar.gz |
Show the minor MCAL version if we have it.
Diffstat (limited to 'ext/mcal/php_mcal.c')
-rw-r--r-- | ext/mcal/php_mcal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/mcal/php_mcal.c b/ext/mcal/php_mcal.c index b3ae486b84..0d98299c4a 100644 --- a/ext/mcal/php_mcal.c +++ b/ext/mcal/php_mcal.c @@ -151,6 +151,9 @@ PHP_MINFO_FUNCTION(mcal) php_printf("<table>"); php_printf("<tr><td>Mcal Version:</td>"); php_printf("<td>%s</td>", CALVER); +#ifdef MCALVER + php_printf("<td>%d</td>", MCALVER); +#endif php_printf("</tr></table>"); } @@ -499,7 +502,7 @@ PHP_FUNCTION(mcal_list_events) datetime_t startdate=DT_INIT; datetime_t enddate=DT_INIT; myargc=ARG_COUNT(ht); - if ((myargc !=1 && myargc !=7)|| getParameters(ht,myargc,&streamind,&startyear,&startmonth,&startday,&endyear,&endmonth,&endday) == FAILURE) { + if ((myargc != 1 && myargc != 7)|| getParameters(ht,myargc,&streamind,&startyear,&startmonth,&startday,&endyear,&endmonth,&endday) == FAILURE) { WRONG_PARAM_COUNT; } |