File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ 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- key=${key,,}
106+ # Lowercase in POSIX sh (dash/busybox) without bash-specific substitution
107+ key=$( printf ' %s' " $key " | tr ' [:upper:]' ' [:lower:]' )
107108 # Append as "key = value" (value is written as-is; quote in ENV if needed)
108109 printf ' * setting in php.ini: %s = %s\n' " $key " " $value "
109110 printf ' %s = %s\n' " $key " " $value " >> " $CUSTOM_INI "
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ if env | grep -q '^PHPFPM__'; then
4747 # Transform key: PHPINI__this__setting => this.setting
4848 key=${name# PHPFPM__}
4949 key=$( printf ' %s' " $key " | sed ' s/__/./g' )
50- key=${ key,,}
50+ key=$( printf ' %s ' " $ key" | tr ' [:upper:] ' ' [:lower:] ' )
5151 # Append as "key = value" (value is written as-is; quote in ENV if needed)
5252 printf ' * PHP-FPM pool setting: %s = %s\n' " $key " " $value "
5353 printf ' %s = %s\n' " $key " " $value " >> " $PHP_FPM_POOL_CONF "
You can’t perform that action at this time.
0 commit comments