Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4780

Update Session handler for better PHP 8.1 compatibility

    Details

      Description

      The following errors are written to the logs when logging in to Blesta and when navigating pages.

      [2022-10-28T23:06:50.682932+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::read($sessionId) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::read($sessionId) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":73}

      [2022-10-28T23:06:50.682997+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::write($sessionId, $data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::write($sessionId, $data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":91}

      [2022-10-28T23:06:50.683060+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::destroy($sessionId) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::destroy($sessionId) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":41}

      [2022-10-28T23:06:50.683122+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":53}

      [2022-10-28T23:06:50.746482+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::open($savePath, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::open($savePath, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":65}

      [2022-10-28T23:06:50.746820+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":33}

        Activity

        Hide
        abdy Abdy Franco added a comment -

        It appears that there is already a Pull Request that addresses this issue. https://github.com/phillipsdata/minphp-session/pull/22

        Show
        abdy Abdy Franco added a comment - It appears that there is already a Pull Request that addresses this issue. https://github.com/phillipsdata/minphp-session/pull/22

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              4/May/23

              Agile