Skip to content

Conversation

@djelenc
Copy link

@djelenc djelenc commented Apr 5, 2019

This is some nice work.

During development, I prefer to set display_errors = On in php.ini to enable showing PHP syntax errors. So I created a small patch that adds support for toggling it on by using environment variable DISPLAY_ERRORS. Feel free to use it.


# display PHP errors:
if [ $DISPLAY_ERRORS ]; then
/bin/sed -i "s/display_errors\ \=\ Off/display_errors\ \=\ On/g" /etc/php/7.0/apache2/php.ini
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would enable display_errors even if DISPLAY_ERRORS=no. We should use exportBoolean for this instead.

Copy link
Owner

@fauria fauria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a flag that should be kept disabled by default, we should make use of exportBoolean instead.

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