Skip to content

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

Merged
taylorotwell merged 4 commits intolaravel:7.xfrom
krzysztofrewak:7.x
Mar 18, 2020
Merged

[7.x] Enabling Windows absolute paths normalizing#31985
taylorotwell merged 4 commits intolaravel:7.xfrom
krzysztofrewak:7.x

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
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