-
Epic
-
Resolution: Fixed
-
Minor
-
4.1
-
MOODLE_401_STABLE
-
MOODLE_401_STABLE
-
Prepare Moodle for PHP 8.1
-
(image taken near completion, now php81 is being tested everywhere, GHA, CIs... so no need for those custom tests and branches anymore)
The, hopefully small, epic to turn Moodle ready for PHP 8.1.
When: Being cristal clear (aka transparent), the ideal target release for this is Moodle 4.1.0 (aka, supported since the very beginning of the branch), but be warned that full support may arrive later in any Moodle 4.1.x minor release in the branch, depending of a number of factors (extensions availability and bugs, 3rd part libraries, last minute surprises...).
Some initial links:
- Main changes explained: https://stitcher.io/blog/new-in-php-81 and https://php.watch/versions/8.1.
- Changes detailed: https://github.com/php/php-src/blob/PHP-8.1/UPGRADING.
- Accepted RFCs: https://wiki.php.net/rfc#php_81.
Some basic requirements for this:
- get unit and acceptance tests passing against all databases (may imply the need of upgrading phpunit/behat...).
- check all the changes details have been reviewed and fixed (attached file php81-progress.rtf ). Note that, until release, this file is considered WIP and subject to changes!
- ensure older versions of Moodle don't work with PHP 8.1 (
MDL-73017) - get moodle-php-apache docker images working with the new php version
- verify that php-parallel-lint/php-parallel-lint and others pass for all php versions (
MDL-73406) - search in the tracker for any issue created about "php 8.1" or "php81". Add them to this epic after analysing them.
- FINAL: verify that the apache logs are clean of PHP 8.1 notices/warnings/errors (
MDL-73019) - FINAL: verify that all the issues found by the dev version of PHPCompatibility are fixed or false positives (
MDL-73587). - FINAL: When CIs are passing consistently, put all the MySQL (W) jobs in the target branches of the Epic to, manually, use the new PHP version (note that later, in the TODOs, we'll undo this manual configuration).
- FINAL: get travis and gha working with the new php version (
MDL-73018) - FINAL: Verify that both install and upgrade from lowest possible site works ok, without any error/warning/notice. Both cli and web.
- FINAL: Update docs (and others, see testing instructions) once this is ready. (PR#566)
- ...
And some tasks to do once this is upstream:
TODO 1: Review the travis and/or github actions configuration for various repositories. The new PHP version needs to be covered. Known to need review / fix repos include:
- (PR#252) - moodle_docker
- moodle-ci-runner
- (MR#43) - nightlyjobs (don't forget to delete any manual configuration that has been done in advance for the, usually, MySQL (W) jobs in the Epic target branches).
- moodle-cs
- moodle-plugin-ci (version 4.0 being prepared @ dev-master, though version 3.x works ok too, it seems)
- (PR#215) - local_codechecker (waiting for
MDL-77417to be integrated...) - (PR#105) - local_moodlecheck
- local_ci
- (Issue#116) - moodle-tool_pluginskel
- (PR#3) - moodle-webservice_xmlrpc
- ...
All the issues belonging to this epic should be pulled into master and MOODLE_401_STABLE (unless they are bug fixes requiring patching older, still supported, branches)
- has a clone
-
MDL-76405 Prepare Moodle for PHP 8.2
- Closed
- has a non-specific relationship to
-
MDL-77101 Using soft reserved words (numeric, enum) could break in the future
- Open
-
MDL-77417 Behat error handling doesn't know about deprecated error types
- Closed
-
MDL-73715 Review third party libraries for new versions (4.1 release)
- Closed
-
MDL-76373 Review third party libraries for new versions (4.2 release)
- Closed
- has been marked as being related by
-
MDL-79467 Install: trim(): Passing null is deprecated in lib/pagelib.php
- Closed
-
MDL-76080 mod_data: Test for create_field does not test anything
- Closed
-
MDL-74905 Decide Moodle 4.2 requirements and push them to environment.xml (due date: 2022-12-26)
- Closed
-
MDL-76724 Decide Moodle 4.3 requirements and push them to environment.xml (due date: 2023-05-08)
- Closed
-
MDL-71747 Decide Moodle 4.1 requirements and push them to environment.xml (due date: 2022-06-01)
- Closed
- is a clone of
-
MDL-70745 Prepare Moodle for PHP 8.0
- Closed
- is child of
-
IDEA-147 PHP version 8.2 compatibility
- Closed
- Testing discovered
-
MDL-70889 XMLRPC to be or not to be
- Closed
-
MDL-75760 Explicitly set MYSQLI_REPORT_OFF in the mysql native driver
- Closed
-
MDL-75761 Consider modernising the mysql (and children) native database drivers
- Open
-
MDL-75952 Remove all Reflection setAccessible() uses from core once php81 is the minimum
- Closed
- will be (partly) resolved by
-
MDL-67733 Upgrade Google APIs client library to latest version
- Development in progress
-
MDL-75468 Upgrade TCPDF to 6.5.0
- Closed
-
MDL-75487 Upgrade CFPropertyList to 2.0.3
- Closed
-
MDL-74823 Upgrade HTML Purifier to 4.16.0
- Closed
-
MDL-75466 Upgrade PHPMailer to 6.6.5
- Closed
-
MDL-75481 Upgrade MongoDB to 1.13.1
- Closed
-
MDL-75776 Bump behat and phpunit (composer) dependencies to current ones
- Closed
-
MDL-76089 Upgrade Horde to latest version
- Closed