When trying to install MediaWiki on CentOS 5 (using the packaged version of PHP 5.3.3), I got the following error:
Creating administrator user account... Warning: preg_match(): Compilation failed: assertion expected after (?( at offset 115 in /var/www/html/w/includes/utils/IP.php on line 88 Warning: preg_match(): Compilation failed: assertion expected after (?( at offset 115 in /var/www/html/w/includes/utils/IP.php on line 88 done
This is probably because of gerrit 66304, which rendered the regex
RE_IPV6_ADD incompatible with the PCRE 6.6 that comes with CentOS 5,
though CentOS 6 should be fine.
So we have two options:
- decide not to support PHP binaries that are built to use a system version of PCRE older than 7.2, adding to the installer a check for this; or
- revert the change.
In either case, the patch should be backported to 1.22.
Version: 1.22.0
Severity: normal