We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7cb8917 + 06a1ce9 commit e9da460Copy full SHA for e9da460
1 file changed
system/CLI/CLI.php
@@ -161,9 +161,10 @@ public static function init()
161
static::parseCommandLine();
162
163
static::$initialized = true;
164
- } else {
+ } elseif (! defined('STDOUT')) {
165
// 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
define('STDOUT', 'php://output'); // @codeCoverageIgnore
169
}
170
0 commit comments