Initialize $_SESSION to an empty array even in CLI, to prevent spurious warnings later on

This commit is contained in:
Kijin Sung 2025-09-09 15:25:24 +09:00
parent 3c3e510c2e
commit 9734473b49

View file

@ -338,7 +338,11 @@ class Context
}
// start session
if (\PHP_SAPI !== 'cli')
if (\PHP_SAPI === 'cli')
{
$_SESSION = [];
}
else
{
if (self::$_current_request->getRouteOption('enable_session'))
{