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

KarpelesLab / goro / 26434357893
13%

Build:
DEFAULT BRANCH: master
Ran 26 May 2026 05:36AM UTC
Jobs 1
Files 398
Run time 2min
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

26 May 2026 05:35AM UTC coverage: 12.534% (-0.007%) from 12.541%
26434357893

push

github

MagicalTux
vm: lower $arr[k] OP= rhs and $arr[k]++ on simple-local arr natively

Add OP_ARRAY_COMPOUND_ASSIGN_LOCAL and OP_ARRAY_INC_DEC_LOCAL,
extending the existing OP_ARRAY_SET_LOCAL fast path to compound
assigns and inc/dec on simple-local array containers.

Both opcodes read the current element via arrayGet (which warns on
undef keys, matching the AST), Dup snapshot (defending against
__toString/error_handler slot-mutation during '.=' coercion), apply
compoundOp / DoInc, then write back via arraySetLocal.

Eliminates two AST-delegation call sites in emit_expr.go:
  - $local[k] OP= rhs   (was line 1139)
  - $local[k]++ / dec   (was line 1271)

Side effect: fixes a pre-existing AST panic on '$x = $a[k]++'
expr-context postfix where the snapshot+DoInc path crashed with
'SetVal() called on cached ZVal'. The VM dispatch correctly Dup's
before DoInc.

Nested containers ($obj->arr[i] OP= …, $a[i][j]++, …) still
AST-delegate.

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

49 of 117 new or added lines in 2 files covered. (41.88%)

43 existing lines in 4 files now uncovered.

14970 of 119433 relevant lines covered (12.53%)

2559.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
45
52.19
-0.63% core/vm/vm.go
23
56.52
-0.58% core/vm/vmcompiler/emit_expr.go

Coverage Regressions

Lines Coverage ∆ File
37
18.93
-2.08% core/compiler/run-operator.go
4
56.52
-0.58% core/vm/vmcompiler/emit_expr.go
1
58.8
0.15% core/phpv/hashtable.go
1
33.65
-0.24% core/phpv/zarray.go
Jobs
ID Job ID Ran Files Coverage
1 26434357893.1 26 May 2026 05:36AM UTC 398
12.53
GitHub Action Run
Source Files on build 26434357893
  • Tree
  • List 398
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26434357893
  • ab634827 on github
  • Prev Build on master (#26394336499)
  • Next Build on master (#26434484640)
  • Delete
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