From 371d2a0926ed4de89744651dfef98d236dea1fb8 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 4 Sep 2008 06:19:27 +0000 Subject: [PATCH] Fix for bug 13770, second attempt. Tested with a conflicting install of both dom and domxml, as per the report. --- includes/parser/Parser.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 6a85f29a4a..346be86bc2 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -134,6 +134,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 { -- 2.20.1