diff --git a/admin/environment.xml b/admin/environment.xml
index 2b8d4ef40e5..fbda3f32022 100644
--- a/admin/environment.xml
+++ b/admin/environment.xml
@@ -2435,4 +2435,185 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lang/en/admin.php b/lang/en/admin.php
index acef03e7ec9..241082ee4e5 100644
--- a/lang/en/admin.php
+++ b/lang/en/admin.php
@@ -1063,6 +1063,7 @@ $string['sitepolicyhandlerplugin'] = '{$a->name} ({$a->component})';
$string['sitepolicyguest'] = 'Site policy URL for guests';
$string['sitepolicyguest_help'] = 'The URL of the site policy that all guests must see and agree to before accessing the site. Note that this setting will only have an effect if the site policy handler is set to default (core).';
$string['sitesectionhelp'] = 'If selected, a topic section will be displayed on the site\'s front page.';
+$string['sixtyfourbitswarning'] = 'It has been detected that your site is not using a 64-bit PHP version. It is recommended that you upgrade your site to ensure future compatibility.';
$string['slasharguments'] = 'Use slash arguments';
$string['slashargumentswarning'] = 'It is recommended that the use of slash arguments is enabled. In future it will be required. For more details, see the documentation Using slash arguments.';
$string['smartpix'] = 'Smart pix search';
diff --git a/lib/upgradelib.php b/lib/upgradelib.php
index 7272751034f..82ec2eafd39 100644
--- a/lib/upgradelib.php
+++ b/lib/upgradelib.php
@@ -2339,6 +2339,22 @@ function check_is_https(environment_results $result) {
return null;
}
+/**
+ * Check if the site is using 64 bits PHP.
+ *
+ * @param environment_results $result
+ * @return environment_results|null updated results object, or null if the site is using 64 bits PHP.
+ */
+function check_sixtyfour_bits(environment_results $result) {
+
+ if (PHP_INT_SIZE === 4) {
+ $result->setInfo('php not 64 bits');
+ $result->setStatus(false);
+ return $result;
+ }
+ return null;
+}
+
/**
* Assert the upgrade key is provided, if it is defined.
*