#30294 [Opn->Bgs]: GregorianToJD returning value for date that does not exist
| From: | derick@php.net | Date: | Fri, 01 Oct 2004 07:04:51 +0000 |
| Subject: | #30294 [Opn->Bgs]: GregorianToJD returning value for date that does not exist | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66970@lists.php.net to get a copy of this message | ||
ID: 30294
Updated by: derick@php.net
Reported By: garrettblits at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Calendar related
Operating System: RedHat 8.0
PHP Version: 5.0.2
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
This is consistent with how the other date functions handle overflows.
Previous Comments:
------------------------------------------------------------------------
[2004-09-30 22:05:31] garrettblits at yahoo dot com
Description:
------------
This function (GregorianToJD) will return a value for a date that does
not exist.
Reproduce code:
---------------
$x = GregorianToJD(02,29,1998);
$y = JDToGregorian($x);
echo "$x - $y";
Expected result:
----------------
Nothing or an error: 02/29/1998 does not exist
Actual result:
--------------
2450874 - 3/1/1998
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30294&edit=1