You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strtok() is missing from ext/standard. Zend uses it for simple parsers, config scanners, and legacy code paths. Calling it today fails at runtime (function_exists('strtok') → false).
Category
stdlibProblem
strtok()is missing fromext/standard. Zend uses it for simple parsers, config scanners, and legacy code paths. Calling it today fails at runtime (function_exists('strtok')→ false).php-src reference
ext/standard/string.c—PHP_FUNCTION(strtok)ext/standard/php_string.h—php_strtok_rstate machineRepro (failure today)
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php bin/vm.php repro.php'Zend PHP:
abcendThis compiler: fatal / undefined function
Scope (this repo)
ext/standard/strtok.php— VM implementation with per-request static strtok state (Zend semantics)ext/standard/Module.php— register builtinlib/JIT/Builtin/— optional JIT lowering after VM greentest/compliance/cases/stdlib/strtok.phptDone when
abcendon VM (and JIT/AOT if lowered)./script/ci-fast.sh --filter strtokgreendocs/capabilities.mdrow viaphp script/capability-matrix.phpRelated
lib/