Bug #70687 [NEW]: Month List for 5775 Incorrect

From: Date: Sat, 10 Oct 2015 20:13:04 +0000
Subject: Bug #70687 [NEW]: Month List for 5775 Incorrect
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196515@lists.php.net to get a copy of this message
From: daniel at ohr dot edu Operating system: Mac OS X PHP version: 5.6.14 Package: Calendar related Bug Type: Bug Bug description:Month List for 5775 Incorrect Description: ------------ The script executes fine the problem is that Elul IS NOT THE 13th Month in a non-Leap year 5775 is not a leap year 5776 is a leap year I don't understand how Elul is the 13 month? there are 12 months in a regular non-leap Jewish Year In point of fact to list the months in this order is both confusing and incorrect the first month of the year in Jewish calendar is Nissan the change of the year is in Tishri which makes Tishri the 7th Month and Adar the 12th month or Adar II the 13th month - which is logical since this month is added in a leap year! Notice the output at 7? why is it repeated? Test script: --------------- for ($j = 1;$j<14;$j++) { echo $j.'. '.(iconv ('WINDOWS-1255', 'UTF-8', jdtojewish(jewishtojd($j,1,5775),true))); echo '<br />'; } if (is_leap(5775)) { echo 'true' ;} echo (5775 % 19); Expected result: ---------------- 1. א תשרי התשעה 2. א חשון התשעה 3. א כסלו התשעה 4. א טבת התשעה 5. א שבט התשעה 6. א אדר התשעה 7. א ניסן התשעה 8. א אייר התשעה 9. א סיון התשעה 10. א תמוז התשעה 11. א אב התשעה 12. א אלול התשעה Actual result: -------------- . א תשרי התשעה 2. א חשון התשעה 3. א כסלו התשעה 4. א טבת התשעה 5. א שבט התשעה 6. א אדר התשעה 7. א אדר התשעה 8. א ניסן התשעה 9. א אייר התשעה 10. א סיון התשעה 11. א תמוז התשעה 12. א אב התשעה 13. א אלול התשעה -- Edit bug report at https://bugs.php.net/bug.php?id=70687&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70687&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70687&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70687&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70687&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70687&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70687&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70687&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70687&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70687&r=support Expected behavior: https://bugs.php.net/fix.php?id=70687&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70687&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70687&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70687&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70687&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70687&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70687&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70687&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70687&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70687&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70687&r=mysqlcfg

« previous php.bugs (#196515) next »