kaltura / moodle_plugin

8 stars 37 forks source link

Support for PHP 8.0 #395

Open cjbsdigitallearning opened 1 year ago

cjbsdigitallearning commented 1 year ago

We are about to upgrade to Moodle 4.1 in late March 2023. We have been informed by our Moodle hosting partner that there may be issues with this plugin's support for PHP 8.0 and they have provided the following output. although Moodle 4.1 only requires a minimum PHP 7.4.0, our hosting provider is pushing ahead with PHP 8.0:

Line 1072: Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead Line 1072: Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead Line 1073: The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2 Line 1076: The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2

Is this something you would be able to resolve for us please. I will also raise a ticket with Kaltura support linking to this issue. We are an EU/UK customer.

Best Neil

cjbsdigitallearning commented 1 year ago

Just an update on the above.

I asked our Moodle partner why PHP 8.0 when the minimum recommendation for Moodle 4.1 is PHP 7.4.0. This is due to the length of support, and it seems a majority of hosting providers will be going the same way to avoid having to make the shift to PHP 8.x further down the road.

This is what they said

The primary reason for upgrading to PHP 8.0 is that earlier versions are going out of support and importantly, out of security support. You can see the schedule here https://www.php.net/supported-versions.php