Category
php-in-php · php-src-strict
Problem
hex2bin() VM uses VmString::hex2bin() but JIT/AOT still lowers through ~253-line JitHex2bin.php LLVM monolith (warnings + decode loop).
php-src reference
- ext/standard/string.c — PHP_FUNCTION(hex2bin)
Repro
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php bin/jit.php -r "var_export(hex2bin(\"616263\"));"'
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php vendor/bin/phpunit --filter hex2bin'
Scope
| Path |
Work |
ext/standard/Hex2binJitHelper.php |
JIT SSOT delegating to VmString + TriggerErrorJitHelper |
lib/JIT/Builtin/StringHex2bin.php |
Thin __compiler_hex2bin bridge |
ext/standard/hex2bin.php |
Route call() through bridge |
| Shrink |
Delete ext/standard/JitHex2bin.php |
Done when
- JIT/AOT hex2bin matches Zend on compliance tests (warnings, strict, false)
JitHex2bin.php deleted; PR notes LLVM lines removed
make bootstrap-selfhost-vm-driver-execute-probe green
Pairs #14603 (bin2hex). Refs #1492
Category
php-in-php· php-src-strictProblem
hex2bin()VM usesVmString::hex2bin()but JIT/AOT still lowers through ~253-lineJitHex2bin.phpLLVM monolith (warnings + decode loop).php-src reference
Repro
Scope
ext/standard/Hex2binJitHelper.phplib/JIT/Builtin/StringHex2bin.php__compiler_hex2binbridgeext/standard/hex2bin.phpext/standard/JitHex2bin.phpDone when
JitHex2bin.phpdeleted; PR notes LLVM lines removedmake bootstrap-selfhost-vm-driver-execute-probegreenPairs #14603 (bin2hex). Refs #1492