Misc/Fixup
* STDOUT is only defined if php is in run in cli mode
This commit is contained in:
parent
494328cf53
commit
6249ac6b2a
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ mb_internal_encoding('UTF-8');
|
|||
define('OS_WIN', substr(PHP_OS, 0, 3) == 'WIN');
|
||||
|
||||
// WIN10 and later usually support ANSI escape sequences
|
||||
define('CLI_HAS_E', !OS_WIN || (function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support(STDOUT)));
|
||||
define('CLI_HAS_E', CLI && (!OS_WIN || (function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support(STDOUT))));
|
||||
|
||||
|
||||
require_once 'includes/defines.php';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue