Skip to content

Stdlib: rename() VM + LLVM JIT/AOT via libc rename(2)#772

Merged
PurHur merged 1 commit into
masterfrom
agent/stdlib-rename
May 23, 2026
Merged

Stdlib: rename() VM + LLVM JIT/AOT via libc rename(2)#772
PurHur merged 1 commit into
masterfrom
agent/stdlib-rename

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 23, 2026

Summary

  • Adds rename(string $from, string $to): bool with VM (VmFs::rename), JIT (JitRename → libc rename(2)), and AOT parity.
  • Registers the builtin in ext/standard/Module.php and declares libc rename in jitInit.
  • Adds compliance PHPT, JIT PHPT, AOT PHPT, and RenameBuiltinTest.

Closes #771

Test plan

  • vendor/bin/phpunit --filter rename (VM compliance + JIT + unit)
  • vendor/bin/phpunit --filter RenameBuiltinTest --group llvm (AOT native binary)
  • Docker harness: tar-pipe into php-compiler:22.04-dev

Made with Cursor

Adds rename(from, to) for filesystem moves with VM, JIT, and AOT parity
alongside unlink/mkdir/rmdir. Closes #771.

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: rename() VM + LLVM JIT/AOT via libc rename(2)

1 participant