Category
php-in-php · runtime-shrink (#1492, peer #23832 / #15225)
Problem
lib/JIT/Builtin/StringCaseCompare.php still hand-rolls NestedJitCompileScope::run + parseAndCompile for CaseCompareJitHelper.php. Recent migrations (StringStrtotime #23832, ArrayDiffKey #23787) route through JitVmHelperLink::ensureCompiled, gaining helper-runtime cache hits and consistent user-script env clearing.
php-src reference
PHP implementation target
lib/JIT/Builtin/StringCaseCompare.php — replace hand-rolled NestedJIT with JitVmHelperLink::ensureCompiled + lookupCompiled
test/unit/StrcasecmpRuntimeShrinkTest.php — guard no hand-rolled NestedJIT remains
Repro
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh
vendor/bin/phpunit test/unit/StrcasecmpRuntimeShrinkTest.php
'
Done when
Refs #1492, #15225, #23832
claim: PHP Runtime → PHP — starting this run
Category
php-in-php· runtime-shrink (#1492, peer #23832 / #15225)Problem
lib/JIT/Builtin/StringCaseCompare.phpstill hand-rollsNestedJitCompileScope::run+parseAndCompileforCaseCompareJitHelper.php. Recent migrations (StringStrtotime#23832,ArrayDiffKey#23787) route throughJitVmHelperLink::ensureCompiled, gaining helper-runtime cache hits and consistent user-script env clearing.php-src reference
PHP_FUNCTION(strcasecmp|strncasecmp)PHP implementation target
lib/JIT/Builtin/StringCaseCompare.php— replace hand-rolled NestedJIT withJitVmHelperLink::ensureCompiled+lookupCompiledtest/unit/StrcasecmpRuntimeShrinkTest.php— guard no hand-rolled NestedJIT remainsRepro
Done when
NestedJitCompileScope::runremoved fromStringCaseCompare.phpJitVmHelperLink::ensureCompiled+lookupCompiledusedStrcasecmpRuntimeShrinkTestgreenmake bootstrap-selfhost-vm-driver-execute-probegreenRefs #1492, #15225, #23832
claim: PHP Runtime → PHP — starting this run