mtdowling/cron-expression — Issue #8: Every 5th and beyond fails 
Author: shizny
Created: 2011-11-09 00:36:34+00:00
State: open

Hello. Great project.. Thank you.

I'm having an issue getting a result back from getNextRunDate when I pass in a cron job that would run every 5 weeks or more. For example.

$cron = Cron\CronExpression::factory('* * * */35 * *');
$cron->getNextRunDate()->format('Y-m-d');

but if I do */28 (which is every four weeks) it returns the correct date.

I tried upping the limit in the for loop in CronExpression to 10000 from 1000 but I can't get phing to build the project back again correctly. Do you have instructions on that as well?