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

extphprs / ext-php-rs / 24405289100
66%
master: 66%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/nhedger/setup-mago-2
DEFAULT BRANCH: master
Ran 14 Apr 2026 02:43PM UTC
Jobs 1
Files 95
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

14 Apr 2026 02:39PM UTC coverage: 66.276%. Remained the same
24405289100

Pull #723

github

ptondereau
fix: inject #[link] attributes correctly when rustfmt is unavailable

When rustfmt is not installed for the active Rust toolchain, bindgen
emits the entire bindings file as a single line (~120K characters).
The previous line-by-line matching approach would place the #[link]
attribute on a separate line before that mega-line, where it attached
to the first item (a struct) instead of the extern blocks. This left
all PHP/Zend symbols (std_object_handlers, zend_ce_*, etc.) without
a link directive, causing "undefined symbol" errors at link time.

Replace line-by-line iteration with direct string replacement using a
three-phase marker approach:

1. Insert a placeholder before every `extern "C/fastcall" {`
2. Swap `unsafe <marker>` to `<marker> unsafe` so the attribute
   lands before the full `unsafe extern` block
3. Expand markers into the real `#[link(name = "php8")]` attribute

This works identically on both formatted (multi-line) and unformatted
(single-line) bindgen output.

Tested on Windows 11 with nightly rust-lld, PHP 8.2 NTS, and rustfmt
deliberately removed to reproduce CI conditions.
Pull Request #723: fix: inject #[link] attributes correctly when rustfmt is unavailable

8417 of 12700 relevant lines covered (66.28%)

33.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24405289100.1 14 Apr 2026 02:43PM UTC 95
66.28
GitHub Action Run
Source Files on build 24405289100
  • Tree
  • List 95
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24405289100
  • Pull Request #723
  • PR Base - master (#24396391060)
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