Use wfIsHHVM() instead of a HipHop-specific environment variable
Change-Id: I5bbf3e4f65d9b6a0d7419f67e3931e77e92b7e6c
This commit is contained in:
parent
7c4b637cca
commit
327f0f92fa
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue