From 55b197031cfb2706cb112684b876bee10a85dc20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 28 Jun 2016 23:23:59 +0200 Subject: [PATCH] Remove Regex::EVAL_REPLACEMENT This was deprecated and threw since before 2.0. --- wcfsetup/install/files/lib/system/Regex.class.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/wcfsetup/install/files/lib/system/Regex.class.php b/wcfsetup/install/files/lib/system/Regex.class.php index 2285d1ed91..1f0cab838e 100644 --- a/wcfsetup/install/files/lib/system/Regex.class.php +++ b/wcfsetup/install/files/lib/system/Regex.class.php @@ -35,13 +35,6 @@ final class Regex { */ const UNGREEDY = 2; - /** - * indicates eval() replacement of Regex::replace() - * @var integer - * @deprecated The feature will be removed in future versions of PHP - */ - const EVAL_REPLACEMENT = 4; - /** * indicates that no extra time is spent on analysing * @var integer @@ -143,9 +136,6 @@ final class Regex { // add modifiers if ($modifier & self::CASE_INSENSITIVE) $this->regex .= 'i'; if ($modifier & self::UNGREEDY) $this->regex .= 'U'; - if ($modifier & self::EVAL_REPLACEMENT) { - throw new SystemException("Using the 'e' modifier for Regex::replace() is discouraged. Please use a callback."); - } if (!($modifier & self::NO_ANALYSE)) $this->regex .= 'S'; if ($modifier & self::IGNORE_WHITESPACE) $this->regex .= 'x'; if ($modifier & self::DOT_ALL) $this->regex .= 's'; -- 2.20.1