Do not raise a PHP warning when session write fails
Bug: T124126 Change-Id: I3482d8dba4a4d9fe92a39439df41c0e70bfef35d
This commit is contained in:
parent
23164604db
commit
bfed32eb78
1 changed files with 3 additions and 1 deletions
|
|
@ -238,10 +238,12 @@ class PHPSessionHandler {
|
|||
|
||||
$session = $this->manager->getSessionById( $id, true );
|
||||
if ( !$session ) {
|
||||
// This can happen under normal circumstances, if the session exists but is
|
||||
// invalid. Let's emit a log warning instead of a PHP warning.
|
||||
$this->logger->warning(
|
||||
__METHOD__ . ": Session \"$id\" cannot be loaded, skipping write."
|
||||
);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
// First, decode the string PHP handed us
|
||||
|
|
|
|||
Loading…
Reference in a new issue