diff --git a/src/Symfony/Component/Translation/Interval.php b/src/Symfony/Component/Translation/Interval.php index 8e0d22f788..f65bd1841c 100644 --- a/src/Symfony/Component/Translation/Interval.php +++ b/src/Symfony/Component/Translation/Interval.php @@ -80,13 +80,13 @@ class Interval | - (?[\[\]]) + (?P[\[\]]) \s* - (?-Inf|\-?\d+) + (?P-Inf|\-?\d+) \s*,\s* - (?\+?Inf|\-?\d+) + (?P\+?Inf|\-?\d+) \s* - (?[\[\]]) + (?P[\[\]]) EOF; } diff --git a/src/Symfony/Component/Translation/MessageSelector.php b/src/Symfony/Component/Translation/MessageSelector.php index 735013f3a1..41c750eef6 100644 --- a/src/Symfony/Component/Translation/MessageSelector.php +++ b/src/Symfony/Component/Translation/MessageSelector.php @@ -54,7 +54,7 @@ class MessageSelector foreach ($parts as $part) { $part = trim($part); - if (preg_match('/^(?'.Interval::getIntervalRegexp().')\s+(?.+?)$/x', $part, $matches)) { + if (preg_match('/^(?P'.Interval::getIntervalRegexp().')\s+(?P.+?)$/x', $part, $matches)) { $explicitRules[$matches['interval']] = $matches['message']; } elseif (preg_match('/^\w+\: +(.+)$/', $part, $matches)) { $standardRules[] = $matches[1];