#49448 [Opn->Asn]: Sunset/Sunrise Zenith default values wrong
| From: | derick@php.net | Date: | Thu, 03 Sep 2009 08:20:59 +0000 |
| Subject: | #49448 [Opn->Asn]: Sunset/Sunrise Zenith default values wrong | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141892@lists.php.net to get a copy of this message | ||
ID: 49448
Updated by: derick@php.net
Reported By: the_good_technician at yahoo dot com
-Status: Open
+Status: Assigned
Bug Type: Unknown/Other Function
Operating System: Any
PHP Version: 5.3.0
-Assigned To:
+Assigned To: derick
Previous Comments:
------------------------------------------------------------------------
[2009-09-03 07:58:41] the_good_technician at yahoo dot com
Description:
------------
This is an easy problem to fix. I'm surprised nobody has reported it
so far.
The default configuration value for "date.sunrise_zenith" and
"date.sunset_zenith" is "90.583333". But this value is incorrect!
The correct value for a sunrise/sunset zenith angle is 90 + (50/60)
WHICH EQUALS
90.83333333333
NOT
90.58333333333
Reproduce code:
---------------
echo ini_get("date.sunrise_zenith") . "\n";
echo ini_get("date.sunset_zenith") . "\n";
Expected result:
----------------
90.83333333333
90.83333333333
Actual result:
--------------
90.58333333333
90.58333333333
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49448&edit=1