|
|
|
@ -1901,7 +1901,8 @@ static void php_do_date_sunrise_sunset(INTERNAL_FUNCTION_PARAMETERS, int calc_su |
|
|
|
|
|
|
|
timelib_unixtime2local(t, time); |
|
|
|
rs = timelib_astro_rise_set_altitude(t, longitude, latitude, altitude, altitude > -1 ? 1 : 0, &h_rise, &h_set, &rise, &set, &transit); |
|
|
|
|
|
|
|
timelib_time_dtor(t); |
|
|
|
|
|
|
|
if (rs != 0) { |
|
|
|
RETURN_FALSE; |
|
|
|
} |
|
|
|
@ -2044,6 +2045,8 @@ PHP_FUNCTION(date_sun_info) |
|
|
|
t2->sse = set; |
|
|
|
add_assoc_long(return_value, "astronomical_twilight_end", timelib_date_to_int(t2, &dummy)); |
|
|
|
} |
|
|
|
timelib_time_dtor(t); |
|
|
|
timelib_time_dtor(t2); |
|
|
|
} |
|
|
|
/* }}} */ |
|
|
|
/* |
|
|
|
|