bug #2032707 [core] PMA does not start if ini_set() is disabled
This commit is contained in:
@@ -72,6 +72,7 @@ danbarry
|
|||||||
|
|
||||||
2.11.9.0 (not yet released)
|
2.11.9.0 (not yet released)
|
||||||
- bug #2031221 [auth] Links to version number on login screen
|
- bug #2031221 [auth] Links to version number on login screen
|
||||||
|
- bug #2032707 [core] PMA does not start if ini_set() is disabled
|
||||||
|
|
||||||
2.11.8.0 (2008-07-28)
|
2.11.8.0 (2008-07-28)
|
||||||
- patch #1987593 [interface] Table list pagination in navi,
|
- patch #1987593 [interface] Table list pagination in navi,
|
||||||
|
@@ -343,7 +343,7 @@ if (!$save_on_server) {
|
|||||||
// Download
|
// Download
|
||||||
// (avoid rewriting data containing HTML with anchors and forms;
|
// (avoid rewriting data containing HTML with anchors and forms;
|
||||||
// this was reported to happen under Plesk)
|
// this was reported to happen under Plesk)
|
||||||
ini_set('url_rewriter.tags','');
|
@ini_set('url_rewriter.tags','');
|
||||||
|
|
||||||
if (!empty($content_encoding)) {
|
if (!empty($content_encoding)) {
|
||||||
header('Content-Encoding: ' . $content_encoding);
|
header('Content-Encoding: ' . $content_encoding);
|
||||||
|
@@ -33,25 +33,25 @@ if (!@function_exists('session_name')) {
|
|||||||
session_set_cookie_params(0, PMA_Config::getCookiePath() . '; HttpOnly',
|
session_set_cookie_params(0, PMA_Config::getCookiePath() . '; HttpOnly',
|
||||||
'', PMA_Config::isHttps());
|
'', PMA_Config::isHttps());
|
||||||
|
|
||||||
// cookies are safer
|
// cookies are safer (use @ini_set() in case this function is disabled)
|
||||||
ini_set('session.use_cookies', true);
|
@ini_set('session.use_cookies', true);
|
||||||
|
|
||||||
// but not all user allow cookies
|
// but not all user allow cookies
|
||||||
ini_set('session.use_only_cookies', false);
|
@ini_set('session.use_only_cookies', false);
|
||||||
ini_set('session.use_trans_sid', true);
|
@ini_set('session.use_trans_sid', true);
|
||||||
ini_set('url_rewriter.tags',
|
@ini_set('url_rewriter.tags',
|
||||||
'a=href,frame=src,input=src,form=fakeentry,fieldset=');
|
'a=href,frame=src,input=src,form=fakeentry,fieldset=');
|
||||||
//ini_set('arg_separator.output', '&');
|
//ini_set('arg_separator.output', '&');
|
||||||
|
|
||||||
// delete session/cookies when browser is closed
|
// delete session/cookies when browser is closed
|
||||||
ini_set('session.cookie_lifetime', 0);
|
@ini_set('session.cookie_lifetime', 0);
|
||||||
|
|
||||||
// warn but dont work with bug
|
// warn but dont work with bug
|
||||||
ini_set('session.bug_compat_42', false);
|
@ini_set('session.bug_compat_42', false);
|
||||||
ini_set('session.bug_compat_warn', true);
|
@ini_set('session.bug_compat_warn', true);
|
||||||
|
|
||||||
// use more secure session ids
|
// use more secure session ids
|
||||||
ini_set('session.hash_function', 1);
|
@ini_set('session.hash_function', 1);
|
||||||
|
|
||||||
// some pages (e.g. stylesheet) may be cached on clients, but not in shared
|
// some pages (e.g. stylesheet) may be cached on clients, but not in shared
|
||||||
// proxy servers
|
// proxy servers
|
||||||
@@ -73,9 +73,9 @@ if (! isset($_COOKIE[$session_name])) {
|
|||||||
ob_start();
|
ob_start();
|
||||||
$old_display_errors = ini_get('display_errors');
|
$old_display_errors = ini_get('display_errors');
|
||||||
$old_error_reporting = error_reporting(E_ALL);
|
$old_error_reporting = error_reporting(E_ALL);
|
||||||
ini_set('display_errors', 1);
|
@ini_set('display_errors', 1);
|
||||||
$r = session_start();
|
$r = session_start();
|
||||||
ini_set('display_errors', $old_display_errors);
|
@ini_set('display_errors', $old_display_errors);
|
||||||
error_reporting($old_error_reporting);
|
error_reporting($old_error_reporting);
|
||||||
unset($old_display_errors, $old_error_reporting);
|
unset($old_display_errors, $old_error_reporting);
|
||||||
$session_error = ob_get_contents();
|
$session_error = ob_get_contents();
|
||||||
|
@@ -19,7 +19,7 @@ require_once './libraries/sqlparser.lib.php';
|
|||||||
// when zlib_compression is on
|
// when zlib_compression is on
|
||||||
if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER == '6'
|
if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER == '6'
|
||||||
&& (ini_get('zlib.output_compression'))) {
|
&& (ini_get('zlib.output_compression'))) {
|
||||||
ini_set('zlib.output_compression', 'Off');
|
@ini_set('zlib.output_compression', 'Off');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($GLOBALS['text_dir'] === 'ltr') {
|
if ($GLOBALS['text_dir'] === 'ltr') {
|
||||||
|
Reference in New Issue
Block a user