poliander / cron

Parse and validate crontab expressions in PHP
https://github.com/poliander/cron
GNU General Public License v3.0
63 stars 10 forks source link

Endless loop in getNext() on certain day/month combinations #18

Closed vencakrecl closed 1 year ago

vencakrecl commented 1 year ago

Hey,

I discovered a bug in this package. If you use 59 23 31 6 * (the date is not valid) expression then the getNext ends in infinity loop.

poliander commented 1 year ago

Thank you very much! Very nasty one, indeed.

poliander commented 1 year ago

Fixed in v2.4.8 and v3.0.6