I’ve just tried to update my MediaWiki installation from 1.16.something to 1.18.1. I executed update.php just as intended and it all seemed to work fine. Until I opened a wiki page that contained SVG images. On that page, I got the following browser error: Fatal error: Class 'XMLReader' not found in /var/www/localhost/htdocs/mediawiki/includes/media/SVGMetadataExtractor.php on line 52 A quick search revealed that said XMLReader class is provided by PHP if it’s compiled with the +xmlreader USE flag. I didn’t have that so I remerged PHP and the everything was fine. My conclusion is that www-apps/mediawiki (dunno which versions exactly) should depend on dev-lang/php[xmlreader]. Reproducible: Always Steps to Reproduce: 1. Install PHP with -xmlreader. 2. Install MediaWiki. 3. Open a wiki page in your browser containing an SVG image. It may be necessary to upload an SVG image and create a page containing it beforehand. Actual Results: Error message in the browser and also in the Apache log file. Expected Results: Page displaying correctly.
Fixed in CVS.