1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

- Remove the unneeded patch which forgot in previous commit

Spotted by:	mat@(Thanks !)
This commit is contained in:
Wen Heping 2014-04-29 05:41:30 +00:00
parent 50649382a2
commit 185a986650
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352574

View File

@ -1,13 +0,0 @@
--- 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 {