Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php step exceeds range, windows only with date('Y')

Out of interest, why on windows does this produce a warning (and returns false):

range(date('Y'), date('Y') + 5)

Warning: range() [function.range]: step exceeds the specified range

Doesn't happen on the live server, just windows. I've been looking for the bug report but haven't found one. Also, if you run two iterations, only the first one fails.

I can replicate sometimes but not others. ie. If I refresh say 20 times, only 2 or 3 of them will give the warning.

I'm using 5.3.5

like image 978
Ashley Avatar asked Dec 12 '25 10:12

Ashley


1 Answers

Upgrading to 5.3.6 fixed this. Not sure what the problem was.

like image 152
Ashley Avatar answered Dec 14 '25 00:12

Ashley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!