From 1e565f0c19847e6be63364736b25a240eb4dfb07 Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Mon, 28 Sep 2020 12:49:52 +0200 Subject: [PATCH] PHP_SAPI when running in PHPDBG is phpdbg not cli. Annoying. --- src/Services/SessionService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/SessionService.php b/src/Services/SessionService.php index 4781824..9451036 100644 --- a/src/Services/SessionService.php +++ b/src/Services/SessionService.php @@ -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; }