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 | 4c92f98c4e5c676ca501b3076b702174050d2ce0 (patch) | |
| tree | 6804c683a7b678cd899eab1aa3e66ed10bb15bb1 | |
| parent | 911228f106a32b2c1fb5dd1abd5076e214c5a839 (diff) | |
| download | php-git-4c92f98c4e5c676ca501b3076b702174050d2ce0.tar.gz | |
Fix for bug #49558 for 5.2 and HEAD as well.
| -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 e7a08fa831..fc084fe38e 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -2456,7 +2456,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) { |
