Stdlib: DateInterval::createFromDateString next/last day words (#27954) - #27968
Merged
Conversation
Accept yesterday/tomorrow and next|last|previous|this day(s) with Zend-matching signed $d (invert=0). Co-authored-by: Cursor <cursoragent@cursor.com>
5 tasks
PurHur
added a commit
that referenced
this pull request
Aug 6, 2026
#27971) #27966/#27968/#27969 landed past the last verified-fresh argv seed, re-staling lowering_source_fingerprint (4f-m / #8713). Rebuild bin-compile-aot on tip (e363d9206231…, verified-fresh) — no restamp. Co-authored-by: PurHur <PurHur@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
added a commit
that referenced
this pull request
Aug 6, 2026
#27973) #27966/#27968/#27969 landed past the last verified-fresh argv seed, re-staling lowering_source_fingerprint (4f-m / #8713). Rebuild bin-compile-aot on tip (e363d9206231…, verified-fresh) — no restamp. Co-authored-by: PurHur <PurHur@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
yesterday/tomorrowandnext|last|previous|this day(s)inDateInterval::createFromDateString/date_interval_create_from_date_string, matching Zend signed$dwithinvert=0.ext/standard/VmDateInterval::tryParseRelativeTextInterval(VM + JIT compile-time literals).ext/date/php_date.c,ext/date/lib/parse_date.re.Closes #27954
Test plan
bin/vm.php/bin/jit.phpontest/repro/issue_27954_dateinterval_relative_day_words.php— identical outputvendor/bin/phpunit --filter DateIntervalCreateFromDateStringTest— OK (5 tests).phpt+ unit guard for relative day wordsci-fast/ compliance suite (pre-existing PHPT parse abort in VMTest discovery)Verification transcript
Made with Cursor