FS#38317 - [mediawiki] PCRE 8.34-1 Upgrade breaks expected regex behavior

Attached to Project: Community Packages
Opened by Pete (the-pete) - Monday, 30 December 2013, 05:23 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 08 January 2014, 11:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

The most recent upgrade to pcre 8.34-1 seems to disallow group names
starting with a digit. A quote from the PCRE news.txt [1]:

> "Perl no longer allows group names to start with digits, so I have made this
change also in PCRE."

I found this bug report[2] on the mediawiki site that apparently has a
working patch though it hasn't been added to a mediawiki update yet.

This breaks my MediaWiki install with the following error in the
httpd/error.log:

>PHP Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907

There is not content shown in the pages of my wiki though a look at the page history/database shows it is all still in the DB.

Let me know if I can get any other info for this.

[1] http://pcre.org/news.txt
[2] https://bugzilla.wikimedia.org/show_bug.cgi?id=58640
This task depends upon

Closed by  Sergej Pupykin (sergej)
Wednesday, 08 January 2014, 11:24 GMT
Reason for closing:  Fixed
Comment by Gergely (imrehg) - Thursday, 02 January 2014, 06:23 GMT
Can confirm that downgrading to pcre 8.33-2 does solve the issue.

Also, I think  FS#38323  is related.
Comment by Pierre Schmitz (Pierre) - Friday, 03 January 2014, 22:16 GMT

Loading...