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
VM gettype() already maps Variable::TYPE_ENUM_CASE to 'object' (ext/standard/gettype.php). JIT path uses JitGettype::boxed() / TYPE_OBJECT only — enum cases passed as boxed __value__ can hit LogicException: gettype() does not support this value type on MCJIT execute.
Blocked for end-to-end repro until #5491 (backed enum compile) is fixed; then JIT tier must match Zend.
Category
language|stdlibProblem
VM
gettype()already mapsVariable::TYPE_ENUM_CASEto'object'(ext/standard/gettype.php). JIT path usesJitGettype::boxed()/TYPE_OBJECTonly — enum cases passed as boxed__value__can hitLogicException: gettype() does not support this value typeon MCJIT execute.Blocked for end-to-end repro until #5491 (backed enum compile) is fixed; then JIT tier must match Zend.
php-src reference
ext/standard/basic_functions.c—PHP_FUNCTION(gettype)(IS_OBJECTfor enums)Repro (after #5491)
objectobjectScope (this repo)
ext/standard/gettype.php— verify enum case pathext/standard/JitGettype.php,gettype.php::call()— handleTYPE_ENUM_CASE/ boxed enum tagtest/compliance/cases/stdlib/gettype_enum_case.phptDone when
objecton VM and JIT/AOT./script/ci-fast.sh --filter gettype_enumgreenRelated