Last modified: 2014-01-17 18:29:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62174, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60174 - HtmlFormatter class doesn't use fallback for mb_convert_encoding if mbstring is not available
HtmlFormatter class doesn't use fallback for mb_convert_encoding if mbstring ...
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.22.0
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://www.mediawiki.org/wiki/Thread...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-17 18:24 UTC by Jesús Martínez Novo (Ciencia Al Poder)
Modified: 2014-01-17 18:29 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jesús Martínez Novo (Ciencia Al Poder) 2014-01-17 18:24:10 UTC
MediaWiki doesn't require PHP to have support for mbstring [1] (it has fallback functions to handle that)

The HtmlFormatter class, part of MediaWiki core in MediaWiki 1.22 that's being used only by Mobile Frontend for now, is accessing "mb_" PHP functions that aren't being defined as fallback, giving fatal errors when PHP doesn't have mbstring support.

The missing function is mb_convert_encoding

We should provide a fallback function for it, or check if ( function_exists( 'mb_convert_encoding' ) ) before using it (as it's being done in DatabasePostgres.php line 437

It currently breaks Mobile Frontend on installations without mbstring

----

[1] https://www.mediawiki.org/wiki/PHP_configuration#Optional

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links