Is there still something to be fixed or why is the bug still open?

--Jani


Rasmus Lerdorf wrote:
rasmus                                   Tue, 15 Sep 2009 20:34:54 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=288356

Log:
Fix for bug #49558 for 5.2 and HEAD as well.

Bug: http://bugs.php.net/49558 (Open) Sunrise Problems around 91 degree zenith
Changed paths:
    U   php/php-src/branches/PHP_5_2/ext/date/php_date.c
    U   php/php-src/trunk/ext/date/php_date.c

Modified: php/php-src/branches/PHP_5_2/ext/date/php_date.c
===================================================================
--- php/php-src/branches/PHP_5_2/ext/date/php_date.c    2009-09-15 20:33:10 UTC 
(rev 288355)
+++ php/php-src/branches/PHP_5_2/ext/date/php_date.c    2009-09-15 20:34:54 UTC 
(rev 288356)
@@ -2456,7 +2456,7 @@
        }

        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) {

Modified: php/php-src/trunk/ext/date/php_date.c
===================================================================
--- php/php-src/trunk/ext/date/php_date.c       2009-09-15 20:33:10 UTC (rev 
288355)
+++ php/php-src/trunk/ext/date/php_date.c       2009-09-15 20:34:54 UTC (rev 
288356)
@@ -4049,7 +4049,7 @@
        }

        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) {




--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to