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

KarpelesLab / goro / 25827054165
13%

Build:
DEFAULT BRANCH: master
Ran 13 May 2026 09:21PM 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

13 May 2026 09:19PM UTC coverage: 12.098% (+0.005%) from 12.093%
25827054165

push

github

MagicalTux
vm: detect external slot mutation in arraySetLocal (bug79784)

When the slot cache is nil (local never initialized in this body) but
the hashtable has a value, the only way that combination can arise is
if an error handler / shutdown function / destructor wrote to the
local through the hashtable during a sub-expression that the
assignment is in the middle of (e.g. \`\$a[\$c] = 'x'\` where evaluating
\$c triggers an undefined-var warning whose handler does
\`\$GLOBALS['a'] = null\`). PHP's bug79784 fix turns this into a no-op
so the handler's final value of the local stays visible. Mirror that:
when arraySetLocal sees nil-slot-with-hashtable-set on a slot-unsafe
body, bail out instead of auto-vivifying over the handler's write.

Slot-only bodies skip the check (no external mutation is possible
when the hashtable isn't mirrored), so normal auto-vivify from an
uninitialized local still works. Explicit \`\$x = null; \$x[0] = 'a';\`
also still vivifies, because the slot now holds a non-nil null ZVal
rather than a nil pointer.

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

8 of 11 new or added lines in 1 file covered. (72.73%)

14017 of 115863 relevant lines covered (12.1%)

2457.22 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
23.29
2.24% core/vm/ops_array.go
Jobs
ID Job ID Ran Files Coverage
1 25827054165.1 13 May 2026 09:21PM UTC 398
12.1
GitHub Action Run
Source Files on build 25827054165
  • Tree
  • List 398
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25827054165
  • a7060bce on github
  • Prev Build on master (#25826547626)
  • Next Build on master (#25827566004)
  • 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