Install Drupal on a server with a 32bit version of PHP.
If you want to install drupal on your TEST server even if you have a 32bit version of php
you need to edit:
core/modules/system/system.install
and comment out ( ~line 973):
if (PHP_INT_SIZE <= 4) {
$requirements['limited_date_range'] = [
'title' => t('Limited date range'),
'value' => t('Your PHP installation has a limited date range.'),
'description' => t('You are running on a system where PHP is compiled or limited to using 32-bit integers. This will limit the range of dates and timestamps to the years 1901-2038. Read about the <a href=":url">limitations of 32-bit PHP</a>.', [':url' => 'https://www.drupal.org/docs/8/system-requirements/limitations-of-32-bit-php']),
'severity' => REQUIREMENT_WARNING,
];
}
It's highly suggested to update to a recent 64bit version of PHP.
This is not fix. This is disabling the warning. The only fix is to use 64bit version of PHP as per today when am commenting.
ReplyDelete