Updated: Changes for PHP 8.x compatibility

This commit is contained in:
Sumit Panwar
2025-05-23 14:41:46 +05:30
parent fa0a498733
commit b9dbc449fe
91 changed files with 574 additions and 409 deletions

View File

@@ -145,14 +145,14 @@ class ConfigurationTestCore
public static function test_phpversion()
{
return (
version_compare(substr(phpversion(), 0, 5), '5.6.0', '>=')
&& version_compare(substr(phpversion(), 0, 5), '8.0', '<')
version_compare(substr(phpversion(), 0, 5), '8.1.0', '>=')
&& version_compare(substr(phpversion(), 0, 5), '8.5', '<')
);
}
public static function test_new_phpversion()
{
return version_compare(substr(phpversion(), 0, 5), '5.6.0', '>=');
return version_compare(substr(phpversion(), 0, 5), '8.1.0', '>=');
}
public static function test_mysql_support()
@@ -188,7 +188,7 @@ class ConfigurationTestCore
public static function test_upload_max_filesize()
{
$upload_max_filesize = preg_replace('/[^0-9\.-]/', '', ini_get('upload_max_filesize'));
if ($upload_max_filesize >= 16) {
if ($upload_max_filesize >= 2) {
return true;
}
return false;