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
sprintf() / printf() / vsprintf() reject object operands for %s with LogicException: sprintf() %s requires a scalar value in this compiler build. Zend coerces via __toString() (or throws Error when conversion fails).
Concat ('x'.$obj.'y') and echo $obj already invoke __toString correctly.
ext/standard/sprintf_.php, printf_.php, vsprintf_.php — use shared string-coercion helper (VmString::coerceStringBuiltinArg / JitStringBuiltinArg) before format dispatch
Activity
PurHur commentedon Jun 29, 2026
claim: PHP Runtime → PHP — batch (issues #13468 #13467)
Fix sprintf family %s coercion for Stringable objects (closes #13467). (
PurHur commentedon Jun 29, 2026
Merged via #13481 — sprintf/printf/vsprintf %s coerces Stringable via VmString::coerceOperand; VM+JIT compliance green.