Commit 90ce9b19 authored by Vincent Petry's avatar Vincent Petry Committed by GitHub
Browse files

Merge pull request #26316 from RealRancor/fail_on_windows

Fail earlier on Windows.
parents abe13a44 8671741d
......@@ -32,6 +32,13 @@ if (version_compare(PHP_VERSION, '5.6.0') === -1) {
return;
}
// running oC on Windows is unsupported since 8.1, this has to happen here because
// is seems that the autoloader on Windows fails later and just throws an exception.
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
echo 'ownCloud Server does not support Microsoft Windows.';
return;
}
try {
require_once __DIR__ . '/lib/base.php';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment