You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
English relative date phrases that Zend parses via parse_date.re return false here, breaking downstream date() calls (TypeError on bool timestamp). Closed #15058 / #14151 covered similar gaps; this repro is still red on master (2026-07-10).
ext/date/ procedural strtotime() / shared parse helpers in PHP — port relative-phrase rules from parse_date.re; avoid growing runtime/ C tables
Repro
./script/docker-exec.sh -- bash -lc 'php bin/vm.php test/repro/maintainer_gap_strtotime_relative_phrase.php'# fail: strtotime('last year January 1') returned false
Done when
maintainer_gap_strtotime_relative_phrase.php prints ok on VM
Activity
PurHur commentedon Jul 10, 2026
claim: cursor-agent-lane-a — starting this run
Stdlib: strtotime() last|next|this year month/day phrases (#17586) (#…
PurHur commentedon Jul 10, 2026
Merged via #17588.
Fix:
VmDateTimeNativenow parseslast|next|this year(bare and with English month/day) perparse_date.re.Verification:
php bin/vm.php test/repro/maintainer_gap_strtotime_relative_phrase.php→ okvendor/bin/phpunit --filter strtotime_relative_phrase→ OK (4 tests)DateTime::modify('last year January 1')on 2020-01-15 base →2019-01-01 00:00:00