Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 29007bd

Browse files
committed
fix SHORT_TAG and ERRORS env vars stopped working with PHP version switch
1 parent d1c0131 commit 29007bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎scripts/start.sh‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ fi
4444

4545
# Display PHP error's or not
4646
if [[ "$ERRORS" != "1" ]] ; then
47-
echo php_flag[display_errors] = off >> /etc/php7/php-fpm.conf
47+
echo display_errors = Off >> /etc/php7/conf.d/php.ini
4848
else
49-
echo php_flag[display_errors] = on >> /etc/php7/php-fpm.conf
49+
echo display_errors = On >> /etc/php7/conf.d/php.ini
5050
fi
5151

5252
# Enable PHP short tag or not
5353
if [[ "$SHORT_TAG" != "1" ]] ; then
54-
echo php_flag[short_open_tag] = off >> /etc/php7/php-fpm.conf
54+
echo short_open_tag = Off >> /etc/php7/conf.d/php.ini
5555
else
56-
echo php_flag[short_open_tag] = on >> /etc/php7/php-fpm.conf
56+
echo short_open_tag = On >> /etc/php7/conf.d/php.ini
5757
fi
5858

5959
# Display Version Details or not

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /