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

php-bug-catcher / bug-catcher
85%
main: 84%

Build:
Build:
LAST BUILD BRANCH: 1.5.1
DEFAULT BRANCH: main
Repo Added 10 Sep 2024 01:22PM UTC
Files 52
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

LAST BUILD ON BRANCH 1.5.2
branch: 1.5.2
CHANGE BRANCH
x
Reset
  • 1.5.2
  • 0.1.4
  • 1.1.0
  • 1.1.1
  • 1.1.2
  • 1.1.3
  • 1.1.5
  • 1.1.6
  • 1.1.7
  • 1.1.8
  • 1.2.0
  • 1.2.1
  • 1.2.2
  • 1.2.3
  • 1.2.4
  • 1.3.0
  • 1.4.0
  • 1.5.0
  • 1.5.1
  • 1.6.0
  • fix/stacktrace-display
  • main
  • multi-login
  • selection

01 Sep 2026 11:09AM UTC coverage: 84.965% (+0.09%) from 84.876%
33502827443

push

github

tito10047
fix(detail): keep shortening trace paths when a frame is not a path

A single frame whose `file` is not a path -- a "Caused by: ..." label, an
`[internal function]` marker, an empty string left by a half-parsed trace line --
dropped the common prefix to nothing, so every other frame was rendered with the
full deploy path of the reporting server. The prefix is now derived only from
frames that look like paths, and stripped only from those.

Two more failure modes fixed on the way:

  * the prefix was seeded from `trace[0]`, so any frame array that was not zero
    indexed produced a null prefix and, again, full paths;
  * `strrpos($prefix, '/')` found nothing in Windows paths, which disabled
    shortening for them -- a regression from the directory boundary cut in the
    previous commit. Both separators are now honoured.

Stripping uses substr() behind a str_starts_with() guard instead of str_replace(),
which would also have rewritten an occurrence of the prefix in the middle of a
path.

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

21 of 22 new or added lines in 1 file covered. (95.45%)

1 existing line in 1 file now uncovered.

859 of 1011 relevant lines covered (84.97%)

6.78 hits per line

Relevant lines Covered
Build:
Build:
1011 RELEVANT LINES 859 COVERED LINES
6.78 HITS PER LINE
Source Files on 1.5.2
  • Tree
  • List 52
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
33502827443 1.5.2 fix(detail): keep shortening trace paths when a frame is not a path A single frame whose `file` is not a path -- a "Caused by: ..." label, an `[internal function]` marker, an empty string left by a half-parsed trace line -- dropped the common pre... push 01 Sep 2026 11:31AM UTC tito10047 github
84.97
See All Builds (69)
  • Repo on GitHub
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