- Process pipes - Remote telnet console - etc.
Activity
clue commentedon Jun 10, 2016
posix_isatty()may help here. See also http://stackoverflow.com/questions/11327367/detect-if-a-php-script-is-being-run-interactively-or-notThis could also affect MS Windows support (#18).
clue commentedon Oct 31, 2017
For the reference: The last example has actually lead to discovering a bug in PHP:
See also reactphp/stream#81 and the upstream bug report https://bugs.php.net/bug.php?id=74252.