PHP_SAPI when running in PHPDBG is phpdbg not cli. Annoying.

This commit is contained in:
Greyscale 2020-09-28 12:49:52 +02:00
parent 236a8189c9
commit 1e565f0c19

View file

@ -32,7 +32,7 @@ class SessionService implements \SessionHandlerInterface
public function initSession(): void
{
if ('cli' === PHP_SAPI || PHP_SESSION_ACTIVE === session_status()) {
if ('cli' === PHP_SAPI || 'phpdbg' == PHP_SAPI || PHP_SESSION_ACTIVE === session_status()) {
return;
}