Index: branches/REL1_13/phase3/includes/parser/Parser.php |
— | — | @@ -133,6 +133,10 @@ |
134 | 134 | $this->mVarCache = array(); |
135 | 135 | if ( isset( $conf['preprocessorClass'] ) ) { |
136 | 136 | $this->mPreprocessorClass = $conf['preprocessorClass']; |
| 137 | + } elseif ( extension_loaded( 'domxml' ) ) { |
| 138 | + // PECL extension that conflicts with the core DOM extension (bug 13770) |
| 139 | + wfDebug( "Warning: you have the obsolete domxml extension for PHP. Please remove it!\n" ); |
| 140 | + $this->mPreprocessorClass = 'Preprocessor_Hash'; |
137 | 141 | } elseif ( extension_loaded( 'dom' ) ) { |
138 | 142 | $this->mPreprocessorClass = 'Preprocessor_DOM'; |
139 | 143 | } else { |