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