Skip to content

Commit 4a4c35c

Browse files
committed
Use bool instead of zend_long in Calendar ext internal function handler
1 parent da012ba commit 4a4c35c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/calendar/easter.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "sdncal.h"
2222
#include <time.h>
2323

24-
static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, zend_long gm)
24+
static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, bool gm)
2525
{
2626
/* based on code by Simon Kershaw, <[email protected]> */
2727

@@ -118,13 +118,13 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, zend_long gm)
118118
/* {{{ Return the timestamp of midnight on Easter of a given year (defaults to current year) */
119119
PHP_FUNCTION(easter_date)
120120
{
121-
_cal_easter(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
121+
_cal_easter(INTERNAL_FUNCTION_PARAM_PASSTHRU, true);
122122
}
123123
/* }}} */
124124

125125
/* {{{ Return the number of days after March 21 that Easter falls on for a given year (defaults to current year) */
126126
PHP_FUNCTION(easter_days)
127127
{
128-
_cal_easter(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
128+
_cal_easter(INTERNAL_FUNCTION_PARAM_PASSTHRU, false);
129129
}
130130
/* }}} */

0 commit comments

Comments
 (0)