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

KarpelesLab / goro / 24646340404
13%

Build:
DEFAULT BRANCH: master
Ran 20 Apr 2026 03:01AM UTC
Jobs 1
Files 371
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

20 Apr 2026 02:59AM UTC coverage: 1.955%. Remained the same
24646340404

push

github

MagicalTux
compile-static: ensure static var storage is a mutable (non-cached) ZVal

closure_009.phpt shows our static-var handling losing increments: the
expected sequence 1:1:1 / 2:2:1 / 3:3:1 came back as 1:1:1 / 2:1:1 /
3:1:1 — the static $n counter always restarted from the initial value
instead of persisting across calls.

Root cause: runStaticVar stored the default-value ZVal directly in
perClosure / perClass / v.z and then OffsetSet it into the function's
locals. When the default was a small integer (ZInt(0) etc.), ZInt.ZVal()
returned the shared cached wrapper — which the hash-table insert path
copies defensively (hashtable.go:325-336). The body's `$n++` then
mutated the *copy* in the hash table, not the stored original, so the
next call reloaded an unchanged initial value.

Fix: factor the initial-value computation into runStaticInitial(), which
Dup()s the result of def.Run (Dup always returns a fresh non-cached
ZVal). After this the stored ZVal and the hash-table entry are the same
pointer, so in-place mutations (doInc's v.Set etc.) are observable on
the next invocation.

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

0 of 24 new or added lines in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

2188 of 111924 relevant lines covered (1.95%)

70.38 hits per line

Uncovered Changes

Lines Coverage ∆ File
24
0.0
0.0% core/compiler/compile-static.go

Coverage Regressions

Lines Coverage ∆ File
1
0.0
0.0% core/compiler/compile-static.go
Jobs
ID Job ID Ran Files Coverage
1 24646340404.1 20 Apr 2026 03:01AM UTC 371
1.95
GitHub Action Run
Source Files on build 24646340404
  • Tree
  • List 371
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24646340404
  • c9ee2def on github
  • Prev Build on master (#24634888504)
  • Next Build on master (#24646382524)
  • 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