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
When a user function or method violates its declared return type, Zend populates TypeError::getTrace() with a frame for the failing callable (g, m, …). VM returns an empty trace array ([]), breaking Exception::getTrace(), getTraceAsString(), and debug tooling that expects the innermost frame.
Repro covers generator return-type violations and ordinary method return-type violations.
Merged #14372 — return-type TypeError getTrace() now includes violating callable frame on VM bridge throws. Verification: maintainer_gap_return_type_error_trace.php + return_type_error_trace.phpt green.
Activity
PurHur commentedon Jul 1, 2026
claim: PHP Runtime → PHP — batch (issues #14369)
Fix return-type TypeError getTrace() for VM bridge throws (#14369). (#…
PurHur commentedon Jul 1, 2026
Merged #14372 — return-type TypeError getTrace() now includes violating callable frame on VM bridge throws. Verification: maintainer_gap_return_type_error_trace.php + return_type_error_trace.phpt green.
PurHur commentedon Jul 1, 2026
claim: PHP Compiler STD Lib — batch (issues #13079, #14369)