Edit report at http://bugs.php.net/bug.php?id=49448&edit=1

 ID:               49448
 Updated by:       [email protected]
 Reported by:      the_good_technician at yahoo dot com
 Summary:          Sunset/Sunrise Zenith default values wrong
-Status:           Assigned
+Status:           Bogus
 Type:             Bug
 Package:          Date/time related
 Operating System: *
 PHP Version:      5.3.0
 Assigned To:      derick

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The algorithm code we use, clearly says:



 *       altit = the altitude which the Sun should cross              

 *               Set to -35/60 degrees for rise/set, -6 degrees       

 *               for civil, -12 degrees for nautical and -18          

 *               degrees for astronomical twilight.                   



and -35/60 = −0.583333333.


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/bug.php?id=49448&edit=1

Reply via email to