ID: 12766 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Linux 2.4.x PHP Version: 4.0.6 New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-05-12 11:15:03] [EMAIL PROTECTED] This issue has been resolved in the CVS version (4.3.0- dev). You can fetch a snapshot with the improved functionality from http://snaps.php.net/ An optional second parameter was added to easter_days(). It can take one of four values: CAL_EASTER_DEFAULT for the current (and default) functionality, CAL_EASTER_ROMAN for continental european behaviour (changes the Julian > Gregorian cut off date from 1752 to 1582) and CAL_EASTER_ALWAYS_JULIAN or CAL_EASTER_ALWAYS_GREGORIAN for forcing the calendar regardless of date. I'm reclassifying this as a documentation problem in order to get the new feature documented. Thank you for your bug report, and for helping us make PHP better. ------------------------------------------------------------------------ [2002-05-12 03:18:59] [EMAIL PROTECTED] Feature Request -> Status: Open. ------------------------------------------------------------------------ [2002-05-12 00:00:03] [EMAIL PROTECTED] No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-04-09 18:53:52] [EMAIL PROTECTED] yes, the fallibility of this function is well-documented. reclassifying as a feature request. ------------------------------------------------------------------------ [2001-08-15 14:25:16] [EMAIL PROTECTED] Based on the documentation for the easter_days command, this behaviour would appear to be deliberate. It seems that the easter calculation is changed over to the Julian formula for all dates prior to 1753, because that is the year that Britain and its colonies finally switched to the Gregorian calendar. However, that does not change the fact that since 1582, the rest of Europe was using the Gregorian calendar. This being the case, it would make since to be able to calculate the date of Easter for the range 1582-1752 using either the Julian formula (which is simply based on cycles of the moon) or the Gregorian formula (which is far more complex). To implement this, an optional switch could be added to the easter_days function which defaults to the Julian formula for that date range, but allows the user to specify the Gregorian formula instead. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/12766 -- Edit this bug report at http://bugs.php.net/?id=12766&edit=1