Problem
Byte-level string manipulation ($slug[0], mutating chars) is common in routers and sanitizers. Compiler may not lower string dim-fetch/write uniformly across VM/JIT.
Goal
Read/write single-byte offsets on PHP strings (Zend-compatible for ASCII subset).
Tasks
Acceptance criteria
$s = 'abc';
$s[1] = 'z';
echo $s; // azc
Files
lib/Compiler.php, lib/VM.php, lib/JIT.php, lib/JIT/JitNativeString.php
Problem
Byte-level string manipulation (
$slug[0], mutating chars) is common in routers and sanitizers. Compiler may not lower string dim-fetch/write uniformly across VM/JIT.Goal
Read/write single-byte offsets on PHP strings (Zend-compatible for ASCII subset).
Tasks
TYPE_ARRAY_DIM_FETCHfor string operands inlib/Compiler.phpJitNativeString/ string typeAcceptance criteria
Files
lib/Compiler.php,lib/VM.php,lib/JIT.php,lib/JIT/JitNativeString.php