Page MenuHomePhabricator

utf8_encode problem
Closed, InvalidPublic

Description

Author: dejfson

Description:
By using unicode encoding by default in gentoo MediaWiki complains about
non-existent? callback to utf8_encode. The error seems to be related to line
115, where array_map using utf8_encode translates strings:

$trans = array_map( 'utf8_encode', $trans );

This creates tons of warnings when opening every page of mediawiki.


Warning: array_map() [function.array-map]: The first argument, 'utf8_encode',
should be either NULL or a valid callback in
/var/www/localhost/htdocs/lhc-project-bcts/includes/GlobalFunctions.php on line 115

Warning: Invalid argument supplied for foreach() in
/var/www/localhost/htdocs/lhc-project-bcts/includes/GlobalFunctions.php on line 130

Warning: implode() [function.implode]: Bad arguments. in
/var/www/localhost/htdocs/lhc-project-bcts/includes/GlobalFunctions.php on line 133

Warning: array_map() [function.array-map]: The first argument, 'utf8_encode',
should be either NULL or a valid callback in
/var/www/localhost/htdocs/lhc-project-bcts/includes/GlobalFunctions.php on line 115

Warning: Invalid argument supplied for foreach() in
/var/www/localhost/htdocs/lhc-project-bcts/includes/GlobalFunctions.php on line 130

Warning: implode() [function.implode]: Bad arguments. in
/var/www/localhost/htdocs/lhc-project-bcts/includes/GlobalFunctions.php on line 133


Version: 1.6.x
Severity: major
OS: Linux
Platform: PC

Details

Reference
bz6486

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 9:21 PM
bzimport set Reference to bz6486.
bzimport added a subscriber: Unknown Object (MLST).

This is in a required module of PHP. Your PHP configuration does not meet
MediaWiki's minimum requirements to run.

Bug is INVALID.