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 993e070

Browse files
committed
add SHORT_TAG env var, enables/disables php short tag option
1 parent a189189 commit 993e070

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

‎README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The following flags are a list of all the currently supported options that can b
1414
- **SSH_KEY** : Private SSH deploy key for your repository base64 encoded (requires write permissions for pushing)
1515
- **WEBROOT** : Change the default webroot directory from `/var/www/html` to your own setting
1616
- **ERRORS** : Set to 1 to display PHP Errors in the browser
17+
- **SHORT_TAG** : Set to 1 to enable PHP SHORT_TAG
1718
- **TEMPLATE_NGINX_HTML** : Enable by setting to 1 search and replace templating to happen on your code
1819
- **HIDE_NGINX_HEADERS** : Disable by setting to 0, default behaviour is to hide nginx + php version in headers
1920
- **PHP_MEM_LIMIT** : Set higher PHP memory limit, default is 128 Mb

‎scripts/start.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ else
4949
echo php_flag[display_errors] = on >> /etc/php5/php-fpm.conf
5050
fi
5151

52+
# Enable PHP short tag or not
53+
if [[ "$SHORT_TAG" != "1" ]] ; then
54+
echo php_flag[short_open_tag] = off >> /etc/php5/php-fpm.conf
55+
else
56+
echo php_flag[short_open_tag] = on >> /etc/php5/php-fpm.conf
57+
fi
58+
5259
# Display Version Details or not
5360
if [[ "$HIDE_NGINX_HEADERS" == "0" ]] ; then
5461
sed -i "s/server_tokens off;/server_tokens on;/g" /etc/nginx/nginx.conf

0 commit comments

Comments
(0)

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