We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
posix_isatty() may help here. See also http://stackoverflow.com/questions/11327367/detect-if-a-php-script-is-being-run-interactively-or-not
posix_isatty()
This could also affect MS Windows support (#18).
# pipe input echo input | php example.php # pipe interactive input cat | php example.php # pipe output php example.php | cat # closed input pipe php example.php 0<&-
Sorry, something went wrong.
For the reference: The last example has actually lead to discovering a bug in PHP:
# bugged: closed input pipe php example.php 0<&- # instead: null input pipe php example.php </dev/null
See also reactphp/stream#81 and the upstream bug report https://bugs.php.net/bug.php?id=74252.
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: