From 327f0f92fa095fdff349e925aa889802c093c0d0 Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Thu, 20 Sep 2018 09:21:47 -0400 Subject: [PATCH] Use wfIsHHVM() instead of a HipHop-specific environment variable Change-Id: I5bbf3e4f65d9b6a0d7419f67e3931e77e92b7e6c --- includes/parser/Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 7d5a362b38..dc2bb0c6b3 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -292,8 +292,8 @@ class Parser { self::EXT_LINK_URL_CLASS . '*)\p{Zs}*([^\]\\x00-\\x08\\x0a-\\x1F\\x{FFFD}]*?)\]/Su'; if ( isset( $conf['preprocessorClass'] ) ) { $this->mPreprocessorClass = $conf['preprocessorClass']; - } elseif ( defined( 'HPHP_VERSION' ) ) { - # Preprocessor_Hash is much faster than Preprocessor_DOM under HipHop + } elseif ( wfIsHHVM() ) { + # Under HHVM Preprocessor_Hash is much faster than Preprocessor_DOM $this->mPreprocessorClass = Preprocessor_Hash::class; } elseif ( extension_loaded( 'domxml' ) ) { # PECL extension that conflicts with the core DOM extension (T15770) -- 2.20.1