[core] RecodingEngine now accepts none as valid option.

This commit is contained in:
Michal Čihař
2010-07-20 11:56:21 +02:00
parent d7192b3a95
commit a4055b4773
5 changed files with 8 additions and 3 deletions

View File

@@ -87,6 +87,7 @@ $Id$
thanks to Piotr Przybylski - crackpl thanks to Piotr Przybylski - crackpl
- bug [password] Generate password only available if JS is enabled - bug [password] Generate password only available if JS is enabled
(fixed for Privileges and Change password) (fixed for Privileges and Change password)
- [core] RecodingEngine now accepts none as valid option.
3.3.6.0 (not yet released) 3.3.6.0 (not yet released)

View File

@@ -1702,6 +1702,7 @@ CREATE DATABASE,ALTER DATABASE,DROP DATABASE</pre>
iconv, then recode)</li> iconv, then recode)</li>
<li>iconv - use iconv or libiconv functions</li> <li>iconv - use iconv or libiconv functions</li>
<li>recode - use recode_string function</li> <li>recode - use recode_string function</li>
<li>none - disable encoding conversion</li>
</ul> </ul>
Default is auto.</dd> Default is auto.</dd>

View File

@@ -33,14 +33,16 @@ if (isset($cfg['AllowAnywhereRecoding'])
PMA_failRecoding(); PMA_failRecoding();
} }
$PMA_recoding_engine = 'iconv'; $PMA_recoding_engine = 'iconv';
} else { } elseif ($cfg['RecodingEngine'] == 'auto') {
if (@extension_loaded('iconv')) { if (@extension_loaded('iconv')) {
$PMA_recoding_engine = 'iconv'; $PMA_recoding_engine = 'iconv';
} elseif (@extension_loaded('recode')) { } elseif (@extension_loaded('recode')) {
$PMA_recoding_engine = 'recode'; $PMA_recoding_engine = 'recode';
} else { } else {
PMA_failRecoding(); $PMA_recoding_engine = 'none';
} }
} else {
$PMA_recoding_engine = 'none';
} }
} // end load recode/iconv extension } // end load recode/iconv extension

View File

@@ -1967,6 +1967,7 @@ $cfg['AllowAnywhereRecoding'] = false;
* recode) * recode)
* iconv - use iconv or libiconv functions * iconv - use iconv or libiconv functions
* recode - use recode_string function * recode - use recode_string function
* none - disable encoding conversion
* *
* @global string $cfg['RecodingEngine'] * @global string $cfg['RecodingEngine']
*/ */

View File

@@ -40,7 +40,7 @@ $cfg_db['Servers'] = array(1 => array(
'AllowDeny' => array( 'AllowDeny' => array(
'order' => array('', 'deny,allow', 'allow,deny', 'explicit')), 'order' => array('', 'deny,allow', 'allow,deny', 'explicit')),
'only_db' => 'array')); 'only_db' => 'array'));
$cfg_db['RecodingEngine'] = array('auto', 'iconv', 'recode'); $cfg_db['RecodingEngine'] = array('auto', 'iconv', 'recode', 'none');
$cfg_db['OBGzip'] = array('auto', true, false); $cfg_db['OBGzip'] = array('auto', true, false);
$cfg_db['ShowTooltipAliasTB'] = array('nested', true, false); $cfg_db['ShowTooltipAliasTB'] = array('nested', true, false);
$cfg_db['DisplayDatabasesList'] = array('auto', true, false); $cfg_db['DisplayDatabasesList'] = array('auto', true, false);