mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
Use proper exit code
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
fb2fd34576
commit
f47daa7ec3
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ if (PHP_VERSION_ID < 70300) {
|
|||
http_response_code(500);
|
||||
echo 'This version of Nextcloud requires at least PHP 7.3<br/>';
|
||||
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// Show warning if > PHP 8.0 is used as Nextcloud is not compatible with > PHP 8.0 for now
|
||||
|
|
@ -38,5 +38,5 @@ if (PHP_VERSION_ID >= 80100) {
|
|||
http_response_code(500);
|
||||
echo 'This version of Nextcloud is not compatible with > PHP 8.0.<br/>';
|
||||
echo 'You are currently running ' . PHP_VERSION . '.';
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue