Do not raise a PHP warning when session write fails

Bug: T124126
Change-Id: I3482d8dba4a4d9fe92a39439df41c0e70bfef35d
This commit is contained in:
Gergő Tisza 2016-01-21 04:24:43 -08:00
parent 23164604db
commit bfed32eb78

View file

@ -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