BUGFIX Checking for mbstring PHP extension support in installer, as it has been a documented installation requirement for a while. Removing method_exists() checks from mbstring usage in core for the same reasons

This commit is contained in:
Ingo Schommer 2012-05-09 10:23:20 +02:00
parent 6f9483cafe
commit 1671b9c65c
3 changed files with 8 additions and 7 deletions

View File

@ -203,11 +203,9 @@ increase_xdebug_nesting_level_to(200);
/**
* Set default encoding
*/
if(function_exists('mb_http_output')) {
mb_http_output('UTF-8');
mb_internal_encoding('UTF-8');
mb_regex_encoding('UTF-8');
}
mb_http_output('UTF-8');
mb_internal_encoding('UTF-8');
mb_regex_encoding('UTF-8');
///////////////////////////////////////////////////////////////////////////////
// INCLUDES

View File

@ -431,8 +431,11 @@ class InstallRequirements {
// Check for iconv support
$this->requireFunction('iconv', array('PHP Configuration', 'iconv support', 'iconv support not included in PHP.'));
// Check for mbstring support
$this->requireFunction('iconv', array('PHP Configuration', 'iconv support', 'iconv support not included in PHP.'));
// Check for hash support
$this->requireFunction('hash', array('PHP Configuration', 'hash support', 'hash support not included in PHP.'));
$this->requireFunction('mb_internal_encoding', array('PHP Configuration', 'mbstring support', 'mbstring support not included in PHP.'));
// Check for Reflection support
$this->requireClass('ReflectionClass', array('PHP Configuration', 'Reflection support', 'Reflection support not included in PHP.'));

View File

@ -62,7 +62,7 @@ class URLSegmentFilter extends Object {
if($transliterator) $name = $transliterator->toASCII($name);
}
$name = (function_exists('mb_strtolower')) ? mb_strtolower($name) : strtolower($name);
$name = mb_strtolower($name);
$replacements = $this->getReplacements();
if($this->getAllowMultibyte()) {
// unset automated removal of non-ASCII characters, and don't try to transliterate