PHP 8.2 for MediaWiki developers

Thiemo Kreuz, November 2022

PHP 8.2 is yet another update that's meant to be smaller but comes – again – with changes that might turn out to be quite impactful on a legacy system like MediaWiki. Let's see.

TL;DR: Log all notices, watch them, and rework code that dynamically appends properties to objects that aren't meant to be extended like that. Check if you rely on setlocale(). Remove utf8_encode() and utf8_decode(). Scan your code for ${…} in strings. Check your str_split().

In detail:

PHP 8.2 is scheduled for release in November 2022, will be actively supported for 2 years and continue to receive security updates until November 2025.

Older posts: