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

KarpelesLab / goro / 25336630631
13%

Build:
DEFAULT BRANCH: master
Ran 04 May 2026 06:41PM UTC
Jobs 1
Files 396
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 May 2026 06:40PM UTC coverage: 7.904% (+1.2%) from 6.72%
25336630631

push

github

MagicalTux
vm: native object instantiation, property read, method call

Adds OP_NEW_OBJECT, OP_OBJECT_GET, OP_OBJECT_CALL.

Coverage:
- new ClassName(args…)
  Routes through phpobj.NewZObject which already handles
  abstract / interface / enum errors and __construct
  dispatch.
- $obj->prop  (read only)
  Dispatches to ZObject.ObjectGet which already handles
  __get, visibility, lazy init, virtual properties, etc.
- $obj->method(args…)
  Routes through ZObject.GetMethod + ctx.CallZVal so
  visibility checks and __call dispatch happen the same
  way as via the AST.

Out of scope (still falls back to AST):
- new $cls(...)            (dynamic class name)
- new class { … }          (anonymous class)
- $obj->\$name             (dynamic property — encoded with
                            varName="\$name" by the parser)
- $obj->\$name(…)          (dynamic method)
- $obj?->...               (nullsafe)
- $obj->prop = v           (property write)
- Foo::bar / static fields
- Spread / named arguments

Notable subtlety: runObjectVar/runObjectFunc encode dynamic
names by setting varName/op to a "$"-prefixed string (the
AST resolves the variable at run time). The emitter checks
for that prefix and fails to ErrUnsupported so the AST runs
the dynamic resolution.

Bench impact: not measurably different — Fibonacci/Arithmetic
hot paths don't use objects. The win is correctness coverage:
~70% of phpt class tests now run under VM mode.

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

115 of 233 new or added lines in 5 files covered. (49.36%)

9031 of 114253 relevant lines covered (7.9%)

839.46 hits per line

Uncovered Changes

Lines Coverage ∆ File
58
18.31
core/vm/ops_object.go
39
56.67
core/vm/vmcompiler/emit_object.go
18
60.84
0.59% core/vm/vm.go
3
73.03
1.03% core/compiler/vmaccess.go
Jobs
ID Job ID Ran Files Coverage
1 25336630631.1 04 May 2026 06:41PM UTC 396
7.9
GitHub Action Run
Source Files on build 25336630631
  • Tree
  • List 396
  • Changed 27
  • Source Changed 4
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25336630631
  • b99fa016 on github
  • Prev Build on master (#25336161853)
  • Next Build on master (#25336784689)
  • Delete
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