We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b0126c commit 9d28744Copy full SHA for 9d28744
system/Boot.php
@@ -196,7 +196,13 @@ protected static function definePathConstants(Paths $paths): void
196
197
// The path to the writable directory.
198
if (! defined('WRITEPATH')) {
199
- define('WRITEPATH', realpath(rtrim($paths->writableDirectory, '\\/ ')) . DIRECTORY_SEPARATOR);
+ if (($writePath = realpath(rtrim($paths->writableDirectory, '\\/ '))) === false) {
200
+ header('HTTP/1.1 503 Service Unavailable.', true, 503);
201
+ echo 'The WRITEPATH is not set correctly.';
202
+ // EXIT_ERROR is not yet defined
203
+ exit(1);
204
+ }
205
+ define('WRITEPATH', $writePath . DIRECTORY_SEPARATOR);
206
}
207
208
// The path to the tests directory
0 commit comments