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

ptondereau / ext-php-rs / 23946026804
66%
master: 66%

Build:
Build:
LAST BUILD BRANCH: fix/string-prop-getter-zend-string-leak
DEFAULT BRANCH: master
Ran 03 Apr 2026 12:27PM UTC
Jobs 1
Files 96
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

03 Apr 2026 12:22PM UTC coverage: 65.848%. Remained the same
23946026804

push

github

ptondereau
feat(zend): add ModuleGlobals for per-extension global state

Add `ModuleGlobal` trait and `ModuleGlobals<T>` struct that integrate
with PHP's TSRM to provide per-extension module globals. In ZTS builds,
PHP allocates per-thread storage via `ts_allocate_id`; in NTS builds,
the globals live inline in a user-declared static.

API surface:
- `ModuleGlobal` trait: `Default + 'static` with optional `ginit`/`gshutdown`
- `ModuleGlobals<T>::new()`: const constructor for static declaration
- `ModuleGlobals<T>::get()`: safe shared access (PHP single-threaded request model)
- `ModuleGlobals<T>::get_mut()`: unsafe mutable access
- `ModuleGlobals<T>::as_ptr()`: raw pointer escape hatch
- `ModuleBuilder::globals()`: registration via existing builder pattern

C layer: `ext_php_rs_tsrmg_bulk()` wraps `TSRMG_BULK` macro for ZTS access,
matching the existing pattern for executor/compiler/process globals.

138 of 142 new or added lines in 2 files covered. (97.18%)

73 existing lines in 2 files now uncovered.

8370 of 12711 relevant lines covered (65.85%)

33.34 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
96.15
0.0% src/zend/module_globals.rs

Coverage Regressions

Lines Coverage ∆ File
70
71.03
0.0% src/builders/module.rs
3
73.68
0.0% src/zend/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 23946026804.1 03 Apr 2026 12:27PM UTC 96
65.85
GitHub Action Run
Source Files on build 23946026804
  • Tree
  • List 96
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23946026804
  • 80cf9595 on github
  • Prev Build on feat/module-globals (#23946004162)
  • 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