bug #2355753 [core] do not bail out creating session on any PHP warning
This commit is contained in:
@@ -12,6 +12,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
||||
- bug #2202709 [core] Re-login causes PMA to forget current table name
|
||||
- bug #2280904 [export] do not include view name in export
|
||||
- rfe #1688975 [display] enable copying of auto increment by default
|
||||
- bug #2355753 [core] do not bail out creating session on any PHP warning
|
||||
|
||||
3.1.0.0 (2008-11-28)
|
||||
+ [auth] Support for Swekey hardware authentication,
|
||||
|
@@ -71,10 +71,12 @@ if (! isset($_COOKIE[$session_name])) {
|
||||
// on first start of session we check for errors
|
||||
// f.e. session dir cannot be accessed - session file not created
|
||||
$r = session_start();
|
||||
if ($r !== true || $GLOBALS['error_handler']->hasErrors()) {
|
||||
$orig_error_count = $GLOBALS['error_handler']->countErrors();
|
||||
if ($r !== true || $orig_error_count != $GLOBALS['error_handler']->countErrors()) {
|
||||
setcookie($session_name, '', 1);
|
||||
PMA_fatalError('strSessionStartupErrorGeneral');
|
||||
}
|
||||
unset($orig_error_count);
|
||||
} else {
|
||||
@session_start();
|
||||
}
|
||||
|
Reference in New Issue
Block a user