MediaWiki V1.30.0
PHP version 7.2.2 (apache2handler)
MySQL 5.7.21
There seems to be deprecated code in /includes/MagicWord.php line 206:
while ( list( $key, $value ) = each( $m ) ) { ...
Maybe replace with:
foreach ($m as $key=>$value) {
MediaWiki V1.30.0
PHP version 7.2.2 (apache2handler)
MySQL 5.7.21
There seems to be deprecated code in /includes/MagicWord.php line 206:
while ( list( $key, $value ) = each( $m ) ) { ...
Maybe replace with:
foreach ($m as $key=>$value) {
The each() function of PHP is deprecated. Maybe you can check https://github.com/wikimedia/mediawiki to see, if this has already been fixed in the latest version!
I cannot find this issue in master and also not in the 1.30 branch.
Also version 1.29 does '''not''' have an each() in that file. Are you sure you have updated your installation properly? Are you maybe still using an old version of that file?
Sorry, it's in /includes/MagicWordArray.php line 206.
I just downloaded the 1.30 again (https://releases.wikimedia.org/mediawiki/1.30/mediawiki-1.30.0.tar.gz) and confirmed it's in the source.
Also, confirmed it's fixed in the master on github.
MediaWiki 1.30 is not fully compatible with PHP 7.2. Note however that we a re not speaking about a broken functionality, but only about a deprecation warning.
MediaWiki 1.31, which will be created from latest master, will be compatible with PHP 7.2 in that regard.
Here is a patch for this issue - which only is part of MediaWiki 1.31: https://phabricator.wikimedia.org/T174354
MediaWiki 1.30 officially is not compatible with PHP 7.2, but you can apply the patch manually to get MW 1.30 working with PHP 7.2 as well.