Category
php-in-php · refs #1492
Problem
ext/standard/JitChmod.php (~70 LOC) lowers JIT chmod() through libc chmod(2) + inline __compiler_trigger_error LLVM. VM SSOT is VmFs::chmod() (pure PHP / VmFsDirPure). JIT should compile the same PHP helper, not duplicate libc.
php-src reference
Repro (architectural)
grep "lookupFunction('chmod')" ext/standard/JitChmod.php
Scope
| Path |
Work |
ext/standard/ChmodJitHelper.php |
invokeArgv() → VmFs::chmod() + TriggerErrorJitHelper warning |
lib/JIT/Builtin/StringChmod.php |
Thin ABI __phpc_jit_chmod bridge |
ext/standard/JitChmod.php |
Thin wrapper like JitRealpath.php |
| Tests |
test/unit/ChmodRuntimeShrinkTest.php |
Done when
Related
#1492
Category
php-in-php· refs #1492Problem
ext/standard/JitChmod.php(~70 LOC) lowers JITchmod()through libcchmod(2)+ inline__compiler_trigger_errorLLVM. VM SSOT isVmFs::chmod()(pure PHP / VmFsDirPure). JIT should compile the same PHP helper, not duplicate libc.php-src reference
ext/standard/filestat.c—php_chmodRepro (architectural)
grep "lookupFunction('chmod')" ext/standard/JitChmod.phpScope
ext/standard/ChmodJitHelper.phpinvokeArgv()→VmFs::chmod()+TriggerErrorJitHelperwarninglib/JIT/Builtin/StringChmod.php__phpc_jit_chmodbridgeext/standard/JitChmod.phpJitRealpath.phptest/unit/ChmodRuntimeShrinkTest.phpDone when
lookupFunction('chmod')inJitChmod.phpChmodJitHelpermatches VM on temp file chmod./script/ci-fast.sh --filter ChmodRuntimeShrinkgreenRelated
#1492