From: marsh dot wayne at gmail dot com
Operating system: Windows 2000 SP4
PHP version: 5.2.0
PHP Bug Type: Calendar related
Bug description: using gregorian to jeulian to unix timestamp in date is wonky
Description:
------------
I do believe this issue is with date. None of the bugs that appeared
seemed to say the issue was resolved. I will install latest cvs and see
if that resolves the issue and then update the bug issue.
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
for($x = 1; $x < 13; $x++ ){
echo date("F", jdtounix(GregorianToJD( $x, 1 ,2008 )))." - ".$x."<br />";
}
?>
Expected result:
----------------
January - 1
February - 2
March - 3
April - 4
May - 5
June - 6
July - 7
August - 8
September - 9
October - 10
November - 11
December - 12
Actual result:
--------------
December - 1
January - 2
February - 3
March - 4
April - 5
May - 6
June - 7
July - 8
August - 9
September - 10
October - 11
November - 12
--
Edit bug report at http://bugs.php.net/?id=40116&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40116&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40116&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40116&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40116&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40116&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40116&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40116&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40116&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40116&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40116&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40116&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40116&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40116&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40116&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40116&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40116&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40116&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40116&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40116&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40116&r=mysqlcfg