Author: p.oranje
Description:
After svn update to r76651 the following warning is shown:
Warning: preg_match() [function.preg-match]: Compilation failed: assertion expected after (?( at offset 157 in [my server]/mediawiki-trunk/includes/IP.php on line 85
The actual regex="/^((::|:(:([0-9A-Fa-f]{1,4})){1,7})|([0-9A-Fa-f]{1,4})(:([0-9A-Fa-f]{1,4})){0,6}::|([0-9A-Fa-f]{1,4})(:([0-9A-Fa-f]{1,4})){7}|([0-9A-Fa-f]{1,4})(:(?P<abbr>(?(abbr)|:))?([0-9A-Fa-f]{1,4})){1,6}(?(abbr)|^))(\/(12[0-8]|1[01][0-9]|[1-9]?\d)|)$/"
Used software versions:
mediawiki: 1.17alpha (r76658)
PHP: 5.2.8 (but somehow does not accept the syntax "(?<name>)" which should work as of version 5.2.2, see http://php.net/manual/en/function.preg-match.php)
Version: 1.17.x
Severity: normal