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

KarpelesLab / goro / 25771801761

13 May 2026 01:08AM UTC coverage: 11.374% (+0.5%) from 10.892%
25771801761

push

github

MagicalTux
vm: user consts, typed return, destructure, var-vars, compound-expr, inc-dec non-local

Closes six AST fall-back triggers, each via the established
OpClassConst / OpTryFinally + OP_REFRESH_SLOTS pattern (and IsSlotSafe
extensions where needed):

* User-defined constants (PHP_INT_MAX, namespaced, define()-set, etc.)
  go through OpClassConst — resolution lives in the AST.
* Typed return (\`function f(): int { return \$x; }\`) AST-delegates
  the runReturn so coercion runs. Adjusts compile-func.go to stop
  skipping VM compile for return-typed closures.
* Short list / list() destructuring: \`[\$a, \$b] = \$arr\` and the
  keyword form both AST-delegate via the assign helper.
* Variable variables: \`\$\$name\` / \`\${\$expr}\` read/write.
* Compound assign as expression: \`\$y = (\$x += 1) * 2\` re-loads
  \$x after the native OpOpAssignLocal.
* ++/-- on non-variable targets: \$obj->prop++, \$arr[k]++, Foo::\$bar++
  AST-delegate via the assign helper; IsSlotSafe now flags T_INC/T_DEC
  alongside opD.write writes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

63 of 83 new or added lines in 5 files covered. (75.9%)

7 existing lines in 3 files now uncovered.

13116 of 115316 relevant lines covered (11.37%)

1949.91 hits per line

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

40.56
/core/phpctx/context-func.go


Build SHA Not Found

The commit SHA "155c6b5e0a5e15efa41157a50065be406f794b13" was not found in your repository, so the file cannot be loaded. This may be because you posted from a local development environment, or your CI created an ephemeral commit.

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

© 2026 Coveralls, Inc