Wrong date in jdtojewish function in php

I want to convert the Gregorian calendar to the Hebrew date, so I use this code:
$jd = gregoriantojd(2, 25, 2020);
echo jdtojewish($jd); // the reuslt is: 5/30/5780
and then, when I add one day to the date, the month jumps up two months instead of one month,
$jd = gregoriantojd(2, 26, 2020);
echo jdtojewish($jd); // the result is: 7/1/5780
The right output should be 6/1/5780. how can I get the right Hebrew date ?
Answer
Solution:
Here is the explanation in 9 year old bug report https://bugs.php.net/bug.php?id=61185 The problem is that on non-leap years PHP function jdtojewish just skips 6th month
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: unable to determine current zabbix database version: the table "dbversion" was not found.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.