PHP_SAPI when running in PHPDBG is phpdbg not cli. Annoying.
This commit is contained in:
parent
236a8189c9
commit
1e565f0c19
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue