Skip to content

Conversation

@magikid
Copy link
Contributor

@magikid magikid commented Jun 6, 2019

If an uncaught exception is thrown during parsing of the php.ini file, $extDir will contain a combination of the exception and the path. This script shouldn't care about error messages though as long as it gets the path. This updates the script so that php won't emit any error messages.

If an uncaught exception is thrown during parsing of the php.ini file, `$extDir` will contain a combination of the exception and the path.  This script shouldn't care about error messages though as long as it gets the path.  This updates the script so that php won't emit any error messages.
@tianon
Copy link
Member

tianon commented Jun 7, 2019

Good catch! I think instead of ignoring them though, we should have them go to stderr so the script operator can more easily diagnose (ala https://stackoverflow.com/a/46658410/433558). 👍

(I'll have a commit that does that shortly which also updates the generated versions so this can run through our full test suite via Travis too. 👍)

@tianon tianon requested a review from yosifkit June 7, 2019 21:01
@yosifkit yosifkit merged commit 10c1eee into docker-library:master Jun 7, 2019
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jun 8, 2019
Changes:

- docker-library/php@10c1eee: Merge pull request docker-library/php#837 from magikid/master
- docker-library/php@a7e2de0: Send PHP errors/warnings to stderr in our scripts
- docker-library/php@54c2790: Sets PHP error level for getting extension dir
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.

3 participants