svn: /php/php-src/branches/PHP_5_3/ext/date/ php_date.c

From: Date: Tue, 15 Sep 2009 20:28:42 +0000
Subject: svn: /php/php-src/branches/PHP_5_3/ext/date/ php_date.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-60397@lists.php.net to get a copy of this message
rasmus Tue, 15 Sep 2009 20:28:42 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=288354 Log: 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 (Open) Sunrise Problems around 91 degree zenith Changed paths: U php/php-src/branches/PHP_5_3/ext/date/php_date.c Modified: php/php-src/branches/PHP_5_3/ext/date/php_date.c =================================================================== --- php/php-src/branches/PHP_5_3/ext/date/php_date.c 2009-09-15 18:45:17 UTC (rev 288353) +++ php/php-src/branches/PHP_5_3/ext/date/php_date.c 2009-09-15 20:28:42 UTC (rev 288354) @@ -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, calc_sunset?0:1, &h_rise, &h_set, &rise, &set, &transit); timelib_time_dtor(t); if (rs != 0) {

« previous php.cvs (#60397) next »