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
Language: (array) cast on enum cases — regression vs closed #5536 (zend_enum.c) #5771
(array) on backed or unit enum case values must produce Zend’s name / value hash shape (zend_enum_to_array()). #5536 was closed, but VM still coerces to a numeric list (array(0 => 1) / array(0 => 'A')).
lib/VM/CastSupport.php has enumCaseEntryToArray() / enumCaseObjectToArray(), but the cast opcode path likely receives a backing scalar or non-TYPE_ENUM_CASE zval before CastSupport::toArray() runs.
Activity
PurHur commentedon Jun 4, 2026
claim: worker-lane-c — starting this run
PurHur commentedon Jun 4, 2026
verified fixed
PurHur commentedon Jun 4, 2026
Verified on master: repro scripts and EnumArrayCastTest pass in Docker (fixed by #5536/#5561). No additional VM change required.