Skip to content

Commit 8a14cd3

Browse files
committed
Update entrypoint.sh
1 parent 821342c commit 8a14cd3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

entrypoint.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ set -eu
1212
: "${PHP_POST_MAX_SIZE:=""}" # set Value in MB, example: 250
1313
: "${PHP_UPLOAD_MAX_FILESIZE:=""}" # set Value in MB, example: 250
1414
: "${PHP_MAX_FILE_UPLOADS:=""}" # set number, example: 20
15-
: "${PHP_MAX_EXECUTION_TIME:=""}" # set time
15+
: "${PHP_MAX_EXECUTION_TIME:=""}" # set execute time
16+
: "${PHP_SET_VARIABLES_ORDER:=""}" # set variables_order from GPCS to EGPCS, use only for dev!
1617
: "${PHP_SET_OPCACHE_SETTINGS:="0"}" # opcache settings
1718
: "${PHP_FPM_STATUS_PORT:="9001"}" # PHP-FPM Status/Ping Port (default: 9000 but here use 9001)
1819
: "${PHP_FPM_STATUS_PATH:="/php_fpm_status"}" # (default: /status but here use /php_fpm_status)
@@ -130,6 +131,12 @@ if [ -n "$PHP_MAX_EXECUTION_TIME" ]; then
130131
echo "max_execution_time = ${PHP_MAX_EXECUTION_TIME}" >> /usr/local/etc/php/conf.d/${PHP_INI_FILE_NAME}
131132
fi
132133

134+
## changes the variables_order (add E)
135+
if [ "$PHP_SET_VARIABLES_ORDER" -eq "1" ]; then
136+
echo ">> set variables_order=EGPCS"
137+
echo "variables_order = EGPCS" >> /usr/local/etc/php/conf.d/${PHP_INI_FILE_NAME}
138+
fi
139+
133140
# OPCACHE Settings
134141
if [ "$PHP_SET_OPCACHE_SETTINGS" -eq "1" ]; then
135142
echo ">> set opcache settings"

0 commit comments

Comments
 (0)