mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Do not use output buffering if invoked on the CLI
This commit is contained in:
parent
47433841a8
commit
8289a4b925
1 changed files with 4 additions and 1 deletions
|
|
@ -375,7 +375,10 @@ class Context
|
|||
$this->_COOKIE = $_COOKIE;
|
||||
|
||||
// start output buffer
|
||||
ob_start();
|
||||
if (\PHP_SAPI !== 'cli')
|
||||
{
|
||||
ob_start();
|
||||
}
|
||||
|
||||
// set authentication information in Context and session
|
||||
if (self::isInstalled())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue