@@ -4525,8 +4525,7 @@ static void php_do_date_sunrise_sunset(INTERNAL_FUNCTION_PARAMETERS, int calc_su
4525
4525
zend_bool latitude_is_null = 1 , longitude_is_null = 1 , zenith_is_null = 1 , gmt_offset_is_null = 1 ;
4526
4526
double h_rise , h_set , N ;
4527
4527
timelib_sll rise , set , transit ;
4528
- zend_long time , retformat ;
4529
- zend_bool retformat_is_null ;
4528
+ zend_long time , retformat = SUNFUNCS_RET_STRING ;
4530
4529
int rs ;
4531
4530
timelib_time * t ;
4532
4531
timelib_tzinfo * tzi ;
@@ -4535,17 +4534,13 @@ static void php_do_date_sunrise_sunset(INTERNAL_FUNCTION_PARAMETERS, int calc_su
4535
4534
ZEND_PARSE_PARAMETERS_START (1 , 6 )
4536
4535
Z_PARAM_LONG (time )
4537
4536
Z_PARAM_OPTIONAL
4538
- Z_PARAM_LONG_OR_NULL (retformat , retformat_is_null )
4537
+ Z_PARAM_LONG (retformat )
4539
4538
Z_PARAM_DOUBLE_OR_NULL (latitude , latitude_is_null )
4540
4539
Z_PARAM_DOUBLE_OR_NULL (longitude , longitude_is_null )
4541
4540
Z_PARAM_DOUBLE_OR_NULL (zenith , zenith_is_null )
4542
4541
Z_PARAM_DOUBLE_OR_NULL (gmt_offset , gmt_offset_is_null )
4543
4542
ZEND_PARSE_PARAMETERS_END ();
4544
4543
4545
- if (retformat_is_null ) {
4546
- retformat = SUNFUNCS_RET_STRING ;
4547
- }
4548
-
4549
4544
if (latitude_is_null ) {
4550
4545
latitude = INI_FLT ("date.default_latitude" );
4551
4546
}
0 commit comments