Skip to content

Commit 29d714d

Browse files
authored
Restore app()->getCached*Path() '/' behavior (#32969)
7.2.1 started enforcing DIRECTORY_SEPARATOR as the path prefix to be treated as absolute. For a point release, this breaks Windows environments in existing apps that use environment variables to set absolute '/'-prefixed paths. $_SERVER['APP_CONFIG_CACHE'] = '/ext/cache/config.php'; echo app()->getCachedConfigPath(); // C:\Users\Foo\projects\blog\/ext/cache/config.php This should still be '/ext/cache/config.php'.
1 parent c8522c8 commit 29d714d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class Application extends Container implements ApplicationContract, CachesConfig
152152
*
153153
* @var array
154154
*/
155-
protected $absoluteCachePathPrefixes = [DIRECTORY_SEPARATOR];
155+
protected $absoluteCachePathPrefixes = ['/', '\\'];
156156

157157
/**
158158
* Create a new Illuminate application instance.

0 commit comments

Comments
 (0)