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:
parent
33ab73cd19
commit
3491a648a1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343924
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= mediawiki
|
||||
PORTVERSION= 1.21.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://dumps.wikimedia.org/mediawiki/${PORTVERSION:R}/
|
||||
|
||||
|
13
www/mediawiki121/files/patch-includes-MagicWord.php
Normal file
13
www/mediawiki121/files/patch-includes-MagicWord.php
Normal 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 {
|
Loading…
Reference in New Issue
Block a user