FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve diagnostics and messages by GrahamCampbell · Pull Request #607 · vlucas/phpdotenv · GitHub

Improve diagnostics and messages - #607

Merged
GrahamCampbell merged 6 commits into
masterfrom
fix/diagnostics
Aug 24, 2026
Merged

Improve diagnostics and messages#607
GrahamCampbell merged 6 commits into
masterfrom
fix/diagnostics

Conversation

GrahamCampbell commented Aug 24, 2026
edited
Loading

Copy link
Copy Markdown
Collaborator

Parse error messages embedded the entire first line of a value, so a single malformed escape could copy a neighbouring secret verbatim into logs; the context is now capped at eighty bytes without splitting a UTF-8 character, using plain byte operations so the formatter cannot call an mbstring function the polyfill does not provide, and control bytes in the reported context are escaped so log lines stay printable. A malformed pattern passed to allowedRegexValues reported every value as a mismatch instead of the compile failure, the empty-file-path message blamed the path when the names list was empty, and the repository builder's error text and doc comments were inaccurate; these are corrected. Encoding names are now matched case-insensitively and through their aliases. A new tests workflow job runs the suite with the mbstring functions the polyfill does not implement disabled, so any future use of one fails in CI rather than only on installs that rely on the polyfill. This is stacked on #606.

GrahamCampbell changed the title Diagnostics and message improvements Improve diagnostics and messages Aug 24, 2026
Base automatically changed from fix/bom-string-input to master August 24, 2026 17:57
GrahamCampbell merged commit 226b4ed into master Aug 24, 2026
44 checks passed
GrahamCampbell deleted the fix/diagnostics branch August 24, 2026 18:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL