Repository navigation
Stdlib: IntlDateFormatter::formatObject / datefmt_format_object (#20813) - #20825
Merged
Merged
Conversation
Add static formatObject and procedural datefmt_format_object for DateTime and IntlCalendar inputs (style array, int style, or pattern string). Also teach datefmt_format to accept IntlCalendar instants. Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
force-pushed
the
fix/20813-datefmt-format-object
branch
from
July 19, 2026 03:49
3749192 to
77e2666
Compare
This was referenced Jul 19, 2026
PurHur
added a commit
that referenced
this pull request
Jul 19, 2026
…20819 (#10533) (#20831) Restore 5853/5853 spine coverage and gen-0 sidecar stamp so north-star5-fast and user_release_ready stay green after formatObject / DatePatternGenerator landed without spine requires. 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
IntlDateFormatter::formatObject()+datefmt_format_object()(php-srcdateformat_format_object.cpp).[dateStyle,timeStyle], int style, pattern string, or null (MEDIUM/MEDIUM).datefmt_format/format()now resolve IntlCalendar instants.runtime/C.Closes #20813
Test plan
PHP_COMPILER_PROFILE=8.4 php bin/vm.php test/repro/issue_20813_datefmt_format_object.phpvendor/bin/phpunit --filter intl_datefmt_format_object→ OK (2 tests, VM+JIT, 3×)php-src-strict; no php-compiler-strict shortcut.
Made with Cursor