PHP.net and Acquia will end support of PHP 7.4 on November 28, 2022.
“PHP.net will end support for PHP 7.4 on 28 November 2022. As a result, Acquia is ending support for PHP 7.4 in favor of PHP 8.0 on Monday, 3 October 2022. At that time, we will remove PHP 7.4 and convert all remaining environments to PHP 8.0. This deadline will not be extended, as it is critical your application be upgraded to ensure it’s continued security.”
Since the Acquia platform and PHP.net are enforcing applications be compatible with PHP 8.0 it is imperative that applications are upgraded before October 2022.
There are a few things that need to happen.
- Drupal 7 sites need to be using PHP 8.0.
- Drupal 8 sites must upgrade to Drupal 9.0 as all Drupal 8 sites are marked incompatible with PHP 8.0.
How do you get there?
PHP
In order to prepare for this upgrade it is important that developers thoroughly test their code is compatible with PHP 8.0. Code sniffers are great for this. Check out: PHPCompatibility
Drush
At the time of writing this article Drupal 7 requires Drush version 8.x. If you are running multiple projects you might need to switch between different Drush and PHP versions.
Automate Switching between PHP 7.4, Drush 8.x and PHP 8.1 and Drush 11.x
In order to run this script, download the following gist into a bash file. You can then use 7.4 as an argument to switch back and forth for versions. For example:
./switch-php 7.4
PHP.net and Acquia will end support of PHP 7.4 on November 28, 2022.
“PHP.net will end support for PHP 7.4 on 28 November 2022. As a result, Acquia is ending support for PHP 7.4 in favor of PHP 8.0 on Monday, 3 October 2022. At that time, we will remove PHP 7.4 and convert all remaining environments to PHP 8.0. This deadline will not be extended, as it is critical your application be upgraded to ensure it’s continued security.”
Since the Acquia platform and PHP.net are enforcing applications be compatible with PHP 8.0 it is imperative that applications are upgraded before October 2022.
There are a few things that need to happen.
- Drupal 7 sites need to be using PHP 8.0.
- Drupal 8 sites must upgrade to Drupal 9.0 as all Drupal 8 sites are marked incompatible with PHP 8.0.
How do you get there?
PHP
In order to prepare for this upgrade it is important that developers thoroughly test their code is compatible with PHP 8.0. Code sniffers are great for this. Check out: PHPCompatibility
Drush
At the time of writing this article Drupal 7 requires Drush version 8.x. If you are running multiple projects you might need to switch between different Drush and PHP versions.
Automate Switching between PHP 7.4, Drush 8.x and PHP 8.1 and Drush 11.x
In order to run this script, download the following gist into a bash file. You can then use 7.4 as an argument to switch back and forth for versions. For example:
./switch-php 7.4