pajoye Fri, 09 Oct 2009 18:59:14 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=289441
Log: - Merege: Fix bug #49558 And as Colin mentioned in the bug report, this means date_sunrise() and date_sunset() have been off by 26 seconds in most cases until now Bug: http://bugs.php.net/49558 (Closed) Sunrise Problems around 91 degree zenith Changed paths: U php/php-src/branches/PHP_5_3_1/ext/date/php_date.c Modified: php/php-src/branches/PHP_5_3_1/ext/date/php_date.c =================================================================== --- php/php-src/branches/PHP_5_3_1/ext/date/php_date.c 2009-10-09 18:56:19 UTC (rev 289440) +++ php/php-src/branches/PHP_5_3_1/ext/date/php_date.c 2009-10-09 18:59:14 UTC (rev 289441) @@ -3927,7 +3927,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, 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