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: instance typed property enum case default must compile (extends #9747, re-#9715, Zend/zend_compile.c) #9954
<?phpdeclare(strict_types=1);
enum E: int { case A = 1; }
functionf(E$e = E::A): void {
echo$e->name, "\n";
}
class P {
publicE$e = E::A;
}
f();
$p = newP();
echo$p->e->name, "\n";
./script/docker-exec.sh php bin/vm.php test/repro-maintainer/enum_default_parameter_property.php
# Today: parseAndCompile failure on property default (parameter path may also fail — see #9730)# Zend: prints A twice
Scope (this repo)
Path
Work
lib/Compiler.php
Property default materialization preserves enum case objects
lib/VM.php
Instance property init from enum case default
lib/JIT/Builtin/Type/Object_.php
Default property slots store enum case handles
Tests
New test/compliance/cases/language/enum_instance_property_default.phpt
Done when (php-src-strict)
Repro compiles; new P()->e is enum case E::A with ->nameA
Activity
PurHur commentedon Jun 20, 2026
claim: cursor-agent-lane-a — starting this run
PurHur commentedon Jun 20, 2026
Verified on master 2026-06-20: repro + enum_default_param_property.phpt green on VM. Already fixed — unclaiming, no PR needed.
PurHur commentedon Jun 23, 2026
Closing as stale: repro green on master 2026-06-23 (lane A queue audit — prior claim/unclaim comments confirmed; issue left open).