Skip to content

Stdlib: filemtime() VM + LLVM JIT/AOT via stat st_mtime#704

Merged
PurHur merged 2 commits into
masterfrom
agent/stdlib-filemtime
May 22, 2026
Merged

Stdlib: filemtime() VM + LLVM JIT/AOT via stat st_mtime#704
PurHur merged 2 commits into
masterfrom
agent/stdlib-filemtime

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 22, 2026

Summary

  • Add filemtime() to ext/standard/ with VM execution via @stat and LLVM JIT/AOT lowering through JitStat::pathFileMtimeBoxed() (st_mtime at glibc x86_64 offset 88), matching filesize() (Stdlib: filesize() VM + LLVM JIT/AOT via stat st_size #672).
  • Compliance JIT/VM PHPT, AOT fixture, FilemtimeBuiltinTest, and regenerated capability/bootstrap docs.

Part of ROADMAP Phase 2 stdlib path guards (#78).

Closes #702

Test plan

  • ./script/docker-ci-local.sh fast --filter 'FilemtimeBuiltinTest|filemtime' (VM + LLVM compliance/AOT slice)
  • php script/capability-matrix.php --check (via ci-fast doc gates)

Made with Cursor

PurHur and others added 2 commits May 22, 2026 22:30
Closes #702

Co-authored-by: Cursor <cursoragent@cursor.com>
Regenerate bootstrap/capability docs after merge.

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: filemtime() VM + LLVM JIT/AOT via stat st_mtime

1 participant