diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2009-09-15 20:34:54 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2009-09-15 20:34:54 +0000 |
| commit | 5e0e9419e250373a0eaef19b78dd8e6637b3634f (patch) | |
| tree | 07715035f5ebb41d8c10d6c552eddacd250188fb /ext | |
| parent | 69e0e2fe9090ae66775422f970843cfb54235f48 (diff) | |
| download | php-git-5e0e9419e250373a0eaef19b78dd8e6637b3634f.tar.gz | |
Fix for bug #49558 for 5.2 and HEAD as well.
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/date/php_date.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 588b04bd92..f1ad40422d 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -4049,7 +4049,7 @@ 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); + rs = timelib_astro_rise_set_altitude(t, longitude, latitude, altitude, calc_sunset?0:1, &h_rise, &h_set, &rise, &set, &transit); timelib_time_dtor(t); if (rs != 0) { |
