Skip to content

php-in-php: chmod() JIT via ChmodJitHelper PHP — drop libc LLVM (#15458) - #15459

Merged
PurHur merged 1 commit into
masterfrom
agent/runtime-php-chmod
Jul 3, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/runtime-php-chmod

Conversation

@PurHur

@PurHur PurHur commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

php-src reference

ext/standard/filestat.c — php_chmod

Verification

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit test/unit/ChmodRuntimeShrinkTest.php'
# OK (4 tests, 11 assertions)

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

make bootstrap-selfhost-vm-driver-execute-probe
# bootstrap-selfhost-vm-driver-execute-probe: OK

php script/check-selfhost-spine-coverage-sync.php
# OK

php script/bootstrap-inventory.php --check
# OK 3841/3841

Closes #15458

Made with Cursor

Replace libc chmod(2) LLVM in JitChmod with VmFs SSOT via compiled PHP
helper and StringChmod bridge; shrink JitChmod 70→22 LOC.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 991bdda into master Jul 3, 2026
@PurHur
PurHur deleted the agent/runtime-php-chmod branch July 3, 2026 11:35
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.

php-in-php: chmod() JIT via ChmodJitHelper PHP — drop libc chmod LLVM in JitChmod.php

1 participant