Skip to content

Stdlib: date_add/date_sub/date_modify/date_diff JIT/AOT lowering (#4604) - #8656

Merged
PurHur merged 1 commit into
masterfrom
agent/stdlib-date-mutation-jit-aot
Jun 15, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/stdlib-date-mutation-jit-aot

Conversation

@PurHur

@PurHur PurHur commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

php-src reference

  • ext/date/php_date.c — php_date_add, php_date_sub, php_date_diff, date_modify

Verification

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit --filter "DateMutationJitCompileTest|date_add"'
# OK (3 tests, 6 assertions)

php bin/compile.php -l test/fixtures/aot/compile-only/date_mutation.php
# exit 0

php bin/compile.php -l test/repro/maintainer_date_add.php
# exit 0

php script/capability-matrix.php
# date_add/date_sub/date_modify/date_diff → yes | yes | yes

Closes #4604

Made with Cursor

…).

Implement PHP LLVM helpers (DateMutationRuntime + JitDateMutation) mirroring
VmDateTimeNative interval/modify/diff semantics; VM compliance and AOT compile-only
verification green.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stdlib: date_add()/date_sub()/date_modify()/date_diff() — procedural DateTime mutation (ext/date/php_date.c parity)

1 participant