Skip to content
New issue

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

Open std streams if STDIN, STDOUT, or STDERR are not defined #5

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

KurtThiemann
Copy link
Member

STDIN, STDOUT, and STDERR are only defined in CLI environments: https://www.php.net/manual/en/reserved.constants.php#constant.stdout

This pull request adds a StdStreams singleton class which provides access to the std streams, either by using the constants or by opening the streams using fopen if the constants are not defined.

@matthi4s matthi4s merged commit aaeb0fe into aternosorg:master Sep 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants