mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
Adding a non-zero multiple of 5 weekdays to any Friday, Saturday, or Sunday would result in a Sunday instead of the correct date. This patch provides an implementation of do_adjust_special_weekday() which does not suffer from this issue.
Regenerating Parser =================== Make sure you use re2c 0.9.10 or higher: re2c -d -b -o ext/date/lib/parse_date.c ext/date/lib/parse_date.re re2c -d -b -o ext/date/lib/parse_iso_intervals.c ext/date/lib/parse_iso_intervals.re