Page MenuHomePhabricator

MediaWiki 1.35 should be compatible with PHP 8 per PHP support policy
Closed, ResolvedPublic

Description

The support policy for PHP states:

New major releases of MediaWiki must support at least one PHP version for each of the following criteria:
A PHP version that will be supported by the upstream PHP Group for the full duration of that MediaWiki major release cycle (from our planned release date until our planned end-of-life date).

Support for MW 1.35 is expected to last until September 2023. However, security support for PHP 7.4 ends 28 Nov 2022. Thus, if we want to adhere to the policy, patches for PHP8 support should be backported to 1.35. Or we can make an exception to the policy ¯\_(ツ)_/¯

Event Timeline

Policy is about MW support at release time. PHP 8 wasn't out by the time MW 1.35 was cut; it still isn't.

Policy is about MW support at release time. PHP 8 wasn't out by the time MW 1.35 was cut; it still isn't.

Good point. However, that leaves the problem of not offering support for a supported PHP version for one year. Again, we can just live with that. Or perhaps consider backporting PHP8-related changes to a minor release of 1.35.

Policy is about MW support at release time. PHP 8 wasn't out by the time MW 1.35 was cut; it still isn't.

Good point. However, that leaves the problem of not offering support for a supported PHP version for one year. Again, we can just live with that. Or perhaps consider backporting PHP8-related changes to a minor release of 1.35.

Given how large the breaking changes in PHP 8 are, I imagine the backports would swiftly become non-trivial. That has advantages (easier security backports) to go with the large amount of extra work, but…

We're gonna have to backport some of the lovely monolog support too (at some point)

Reedy triaged this task as Low priority.Sep 30 2022, 2:22 AM

I have tested MW 1.35.7 with PHP 8.0.23. LDAP authentication for domain authentication works with PH 8.0.23.
I appreciate it if someone Can confirm the PHP 8.0.23 support for MW 1.35.7?
Thanks

@Afernawiki: Welcome. There is nothing to confirm in this ticket. Please also see T248925. Feel free to bring this up at https://www.mediawiki.org/wiki/Project:Support_desk instead - thanks.

How much more effort should we put into this?