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
{{ message }}
Repository navigation
Stdlib: preg_match()/preg_match_all() float $offset — LogicException not truncated int (ext/pcre/php_pcre.c) #13818
stdlib · php-src-strict · float→int coercion for PCRE search offset
Problem
Zend coerces float $offset to int for preg_match() / preg_match_all(). This compiler throws LogicException (preg_match() offset must be an integer in this compiler build) when $offset is a float such as 2.7.
Merged via #13892 — preg_match()/preg_match_all() coerce float offset via VmMath::parseIntBuiltinArgForFrame; JitLongArg fpToSi for JIT. VM repro + compliance green.
Activity
PurHur commentedon Jun 30, 2026
claim: PHP Compiler STD Lib — batch (issues #13883, #13884, #13818)
Coerce float offset for preg_match()/preg_match_all() like Zend (#13818…
PurHur commentedon Jun 30, 2026
Merged via #13892 — preg_match()/preg_match_all() coerce float offset via VmMath::parseIntBuiltinArgForFrame; JitLongArg fpToSi for JIT. VM repro + compliance green.