#30294 [NEW]: GregorianToJD returning value for date that does not exist

From: Date: Thu, 30 Sep 2004 20:05:33 +0000
Subject: #30294 [NEW]: GregorianToJD returning value for date that does not exist
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66952@lists.php.net to get a copy of this message
From: garrettblits at yahoo dot com Operating system: RedHat 8.0 PHP version: 5.0.2 PHP Bug Type: Calendar related Bug description: GregorianToJD returning value for date that does not exist 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 bug report at http://bugs.php.net/?id=30294&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30294&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30294&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30294&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30294&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30294&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30294&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30294&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30294&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30294&r=support Expected behavior: http://bugs.php.net/fix.php?id=30294&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30294&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30294&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30294&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30294&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30294&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30294&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30294&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30294&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30294&r=mysqlcfg

« previous php.bugs (#66952) next »