Skip to content

fix: handle missing debugbar history files - #10787

Merged
paulbalandan merged 3 commits into
codeigniter4:developfrom
patel-vansh:fix/concurrent-unlink-requests
Nov 19, 2026
Merged

paulbalandan merged 3 commits into
codeigniter4:developfrom
patel-vansh:fix/concurrent-unlink-requests

Conversation

@patel-vansh

@patel-vansh patel-vansh commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Description
Fixed a PHP warning in History::setFiles() that could occur when a debugbar history file was deleted by another process after being discovered but before its cleanup.

Suppresses the warning when attempting to delete an already-removed file, allowing history cleanup to continue without unnecessary warnings.

Fixes #10786

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@carson-codeigniter4 carson-codeigniter4 Bot added the bug Verified issues on the current code behavior or pull requests that will fix them label Nov 19, 2026
@paulbalandan
paulbalandan merged commit 8f87289 into codeigniter4:develop Nov 19, 2026
59 checks passed
@paulbalandan

Copy link
Copy Markdown
Member

Thanks, @patel-vansh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Debug Toolbar History::setFiles() throws ErrorException on unlink() when concurrent requests prune the same history file

3 participants