We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 018c84f commit 378340aCopy full SHA for 378340a
system/CLI/CLI.php
@@ -161,8 +161,10 @@ public static function init()
161
static::parseCommandLine();
162
163
static::$initialized = true;
164
- // See: https://github.com/codeigniter4/CodeIgniter4/issues/7047
165
} elseif (! defined('STDOUT')) {
+ // If the command is being called from a controller
166
+ // we need to define STDOUT ourselves
167
+ // For "! defined('STDOUT')" see: https://github.com/codeigniter4/CodeIgniter4/issues/7047
168
// @codeCoverageIgnoreStart
169
define('STDOUT', 'php://output');
170
// @codeCoverageIgnoreEnd
0 commit comments