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

Various helpers are polluting stdout, making the output of php scripts to become borked #177

Open
stronk7 opened this issue Aug 6, 2023 · 0 comments

Comments

@stronk7
Copy link
Member

stronk7 commented Aug 6, 2023

Along the last months we have added a bunch of nice extras to the images (support for entrypoints, php.ini settings and extensions enable and disabling.

But there is a problem, because all them are sending to stdout information. Say:

Checking for php configuration in environment
Running PHP Configuration fetcher
Running entrypoint files from /docker-entrypoint.d
Found extension to enable:
...

And that makes simple execution of PHP scripts to become borked, for example:

$ docker run -it --rm moodlehq/moodle-php-apache:8.1-buster php -r 'echo PHP_VERSION;'
Running PHP Configuration fetcher
Checking for php configuration in environment

Running entrypoint files from /docker-entrypoint.d/*

Starting docker-php-entrypoint with php -r echo PHP_VERSION;
8.1.20

All that information shouldn't go to stdout (maybe stderr?) or, at very least, there should be an option to make all the initialisation quiet. Goal, to get exclusively the php execution results at stdout.

Ciao :-)

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

No branches or pull requests

1 participant