Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Enabling Windows absolute paths normalizing #31985

Merged
merged 4 commits into from
Mar 18, 2020
Merged

[7.x] Enabling Windows absolute paths normalizing #31985

merged 4 commits into from
Mar 18, 2020

Conversation

krzysztofrewak
Copy link
Contributor

Some of our devs are working on Windows machines and we've found that there's a big problem with normalizing cache path when it's an absolute path. With Unix systems it's great, because in these cases Laravel only needs to check if a string starts with '/'.Withn Windows it could be more problematic, because absolute path starts with drive capital letter and a colon, eg. 'C:'.

That's why I added absolutePathPrefixes array that could be modified for everyone. In default mode it's not affecting anything else.

@GrahamCampbell GrahamCampbell changed the title [7.x] enabling Windows absolute paths normalizing [7.x] Enabling Windows absolute paths normalizing Mar 16, 2020
@@ -147,6 +147,13 @@ class Application extends Container implements ApplicationContract, CachesConfig
*/
protected $namespace;

/**
* The application namespace.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this comment might be wrong

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course. Fixed.

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.

3 participants