File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,11 @@ pm.max_children = 5
4747# PHP settings by env vars
4848# -----------------------------------------
4949
50- # Example of setting php.ini settings
50+ # Example of setting php.ini settings, UPPER CASED
5151PHPINI__SESSION__SAVE_HANDLER = redis
52+ PHPINI__SESSION__SAVE_PATH = ' "tcp://redis:6379?persistent=1&weight=1&database=10&prefix=PHPSESSID:"'
5253PHPINI__REDIS__SESSION__LOCKING_ENABLED = 1
5354
54- # Example of setting PHP-FPM settings
55- PHPFPM__REQUEST_terminate_timeout = 30s
55+ # Example of setting PHP-FPM settings, lower cased also possible
56+ PHPFPM__request_terminate_timeout = 30s
5657PHPFPM__pm__max_children = 15
Original file line number Diff line number Diff line change @@ -103,10 +103,9 @@ if env | grep -q '^PHPINI__'; then
103103 # Transform key: PHPINI__this__setting => this.setting
104104 key=${name# PHPINI__}
105105 key=$( printf ' %s' " $key " | sed ' s/__/./g' )
106- # Lowercase in POSIX sh (dash/busybox) without bash-specific substitution
107106 key=$( printf ' %s' " $key " | tr ' [:upper:]' ' [:lower:]' )
108107 # Append as "key = value" (value is written as-is; quote in ENV if needed)
109- printf ' * setting in php.ini: %s = %s\n' " $key " " $value "
108+ printf ' * Setting in php.ini: %s = %s\n' " $key " " $value "
110109 printf ' %s = %s\n' " $key " " $value " >> " $CUSTOM_INI "
111110 # Unset them, not relevant to the running containers
112111 unset " $name "
You can’t perform that action at this time.
0 commit comments