https://bugzilla.wikimedia.org/show_bug.cgi?id=60174

       Web browser: ---
            Bug ID: 60174
           Summary: HtmlFormatter class doesn't use fallback for
                    mb_convert_encoding if mbstring is not available
           Product: MediaWiki
           Version: 1.22.0
          Hardware: All
               URL: https://www.mediawiki.org/wiki/Thread:Project:Support_
                    desk/_Extension_:_%28MobileFrontEnd%29_-_!ERROR!_-_Bla
                    nk_Page
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: martinezn...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to