1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Apply a patch from upstream to fix pcre-8.34 incompatible:

https://bugzilla.wikimedia.org/show_bug.cgi?id=58640

PR:		186607
Submitted by:	Robbert Klarenbeek <robbertkl@renbeek.nl>
This commit is contained in:
Wen Heping 2014-02-12 14:31:58 +00:00
parent 33ab73cd19
commit 3491a648a1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343924
2 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= mediawiki
PORTVERSION= 1.21.5
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://dumps.wikimedia.org/mediawiki/${PORTVERSION:R}/

View File

@ -0,0 +1,13 @@
--- includes/MagicWord.php.orig 2014-02-12 22:03:25.000000000 +0800
+++ includes/MagicWord.php 2014-02-12 22:05:10.000000000 +0800
@@ -704,7 +704,9 @@
$magic = MagicWord::get( $name );
$case = intval( $magic->isCaseSensitive() );
foreach ( $magic->getSynonyms() as $i => $syn ) {
- $group = "(?P<{$i}_{$name}>" . preg_quote( $syn, '/' ) . ')';
+ // Group name must start with a non-digit in PCRE 8.34+
+ $it = strtr( $i, '0123456789', 'abcdefghij' );
+ $group = "(?P<{$it}_{$name}>" . preg_quote( $syn, '/' ) . ')';
if ( $this->baseRegex[$case] === '' ) {
$this->baseRegex[$case] = $group;
} else {