• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / goro / 26002510852

17 May 2026 08:57PM UTC coverage: 12.203% (-31.5%) from 43.702%
26002510852

push

github

MagicalTux
vm: lower \`global \$x\` declarations natively

Each entry in a \`global\` decl becomes:
  - push name (OP_LOAD_CONST for static, eval expr for dynamic)
  - OP_GLOBAL_BIND which pops name and calls EvalGlobalBinding

Multi-entry decls (\`global \$a, \$b, \$c\`) emit one push-and-bind per
entry. Tail OP_REFRESH_SLOTS reseats the slot cache so subsequent
loads see the bound values.

\`static \$y = …\` declarations stay AST-delegated (complex per-class
/ per-closure / per-trait storage). Pre-existing "global modify
doesn't propagate" behaviour unchanged — orthogonal bug not introduced
by this change.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

42 of 55 new or added lines in 4 files covered. (76.36%)

36652 existing lines in 334 files now uncovered.

14195 of 116322 relevant lines covered (12.2%)

2549.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

21.62
/core/phpobj/exception.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc