Skip to content

Commit 225e158

Browse files
author
Marius Burkard
committed
Merge branch '6311-add-warning-to-update-script-when-incorrect-php-version-is-used-as-default' into 'develop'
Resolve "Add warning to update script when incorrect PHP version is used as default" Closes #6311 See merge request ispconfig/ispconfig3!1589
2 parents 62204fa + d31c4af commit 225e158

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ public function check_prerequisites() {
249249
$msg = '';
250250

251251
if(version_compare(phpversion(), '5.4', '<')) $msg .= "PHP Version 5.4 or newer is required. The currently used PHP version is ".phpversion().".\n";
252+
if(version_compare(phpversion(), '8.0', '>=')) $msg .= "PHP Version 8 is not supported yet. Change PHP version back to the default version of the OS. The currently used PHP version is ".phpversion().".\n";
252253
if(!function_exists('curl_init')) $msg .= "PHP Curl Module is missing.\n";
253254
if(!function_exists('mysqli_connect')) $msg .= "PHP MySQLi Module is nmissing.\n";
254255
if(!function_exists('mb_detect_encoding')) $msg .= "PHP Multibyte Module (MB) is missing.\n";

0 commit comments

Comments
 (0)