diff options
Diffstat (limited to 'includes/parser/Parser.php')
-rw-r--r-- | includes/parser/Parser.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index e41aa1ac..3ff56a2b 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -133,6 +133,10 @@ class Parser $this->mVarCache = array(); if ( isset( $conf['preprocessorClass'] ) ) { $this->mPreprocessorClass = $conf['preprocessorClass']; + } elseif ( extension_loaded( 'domxml' ) ) { + // PECL extension that conflicts with the core DOM extension (bug 13770) + wfDebug( "Warning: you have the obsolete domxml extension for PHP. Please remove it!\n" ); + $this->mPreprocessorClass = 'Preprocessor_Hash'; } elseif ( extension_loaded( 'dom' ) ) { $this->mPreprocessorClass = 'Preprocessor_DOM'; } else { |