Skip to content

[12.x] Fix exception frame file path on Windows#57103

Merged
taylorotwell merged 3 commits into
12.xfrom
windows-frame-path
Sep 18, 2025
Merged

[12.x] Fix exception frame file path on Windows#57103
taylorotwell merged 3 commits into
12.xfrom
windows-frame-path

Conversation

@avosalmon

Copy link
Copy Markdown
Contributor

This PR fixes the following issues on the local exception page on Windows.

  1. On Windows, vendor frames are incorrectly identified as non-vendor frames, preventing them from being properly collapsed in the trace.

  2. On windows, frame file paths display absolute path instead of relative path from the base path.

Solution

Replace the hardcoded forward slash with DIRECTORY_SEPARATOR to ensure proper cross-platform compatibility.

Related issue

#57082 (comment)

@avosalmon avosalmon changed the title Windows frame path [12.x] Fix exception frame file path on Windows Sep 18, 2025
@taylorotwell taylorotwell merged commit 1a937ce into 12.x Sep 18, 2025
66 checks passed
@taylorotwell taylorotwell deleted the windows-frame-path branch September 18, 2025 15:08
tegos pushed a commit to tegos/laravel-framework that referenced this pull request Sep 28, 2025
* Replace forward slash with DIRECTORY_SEPARATOR

* Use join_paths helper

* Add unit tests for Frame class
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.

2 participants